opensearchserver icon indicating copy to clipboard operation
opensearchserver copied to clipboard

Query or Term Filter with wildcard on URL, Directory and subdirectory fails to return results

Open micktion opened this issue 10 years ago • 3 comments

I'm using OSS 1.5.12 and using the file crawler to create an OSS index.

When querying the index, whilst using a wildcard within a query or term filter on the fileName field works as expected, applying a similar wildcard to the URL, directory or subdirectory fields returns no results.

Whilst I can get a single result entering the full URL of a file. Attempting to use a wild card like...

file:/D:/*

... fails to return any results. I've tested with both Query and Term filters with the same results.

micktion avatar Oct 27 '15 06:10 micktion

Hi @micktion, did you find a solution to this?

We're trying to achieve the same thing, but with URL's.

PaulAik avatar Jun 17 '16 13:06 PaulAik

I'm also having a similar issue trying to query from a selected URL to show any results that appear in its children.

I've tried the following filters as both Query and Term filters, with no success:

        {
           "type": "TermFilter",
           "negative": false,
           "field": "url",
           "term": "[http://www.myurl.com/subpage/ TO *]"
        }

        {
           "type": "TermFilter",
           "negative": false,
           "field": "url",
           "term": "http://www.myurl.com/subpage/*"
        }

Any help on this would be extremely appreciated!

markmc27 avatar Jun 17 '16 15:06 markmc27

No i haven't found a solution for it.

I've ended up reverting back to OSS 1.4 as I encountered other more critical issues with OSS 1.5.

We're now looking at migrating to Azure Search

micktion avatar Jul 14 '16 00:07 micktion