Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: General

Search on indexed value not restrictive under one circumstance

 

 

Lucene general RSS feed   Index | Next | Previous | View Threaded


chris.chadwick at banctec

Sep 14, 2011, 1:06 AM

Post #1 of 4 (404 views)
Permalink
Search on indexed value not restrictive under one circumstance

Hi

We have a fairly large Solr repository which is working exceptionally well.
However our customer noticed a strange search result, in that when looking
for a specific value for the field 'position' in an indexed field it returns
another value in addition to the one searched for. The search is:

position:"LH off" - this correctly returns all results for entries which
are indexed with 'position' of "LH off"

position:"LH on" - this returns the results for 'position' of "LH on"
followed by all the results for "LH off", we cannot understand why "LH off"
is returned in these circumstances for an Indexed search.

Any help greatly appreciated.

--
View this message in context: http://lucene.472066.n3.nabble.com/Search-on-indexed-value-not-restrictive-under-one-circumstance-tp3335176p3335176.html
Sent from the Lucene - General mailing list archive at Nabble.com.


dewadkar at gmail

Sep 14, 2011, 2:10 AM

Post #2 of 4 (405 views)
Permalink
Re: Search on indexed value not restrictive under one circumstance [In reply to]

If it is all ways like i.e. For 'LH on" and "LH off" number of result are
same then it could have because of AND/OR operator. As per your condtion
one way it is working fine and for " LH off" its not. Because of Fuzzy
matching it could have analyzed. "LH on " is near "LH off" while query parse
(25% mismatch) but in other ways it is (40%).
Like to know why it is happening?

On Wed, Sep 14, 2011 at 1:36 PM, Wick2804 <chris.chadwick [at] banctec>wrote:

> Hi
>
> We have a fairly large Solr repository which is working exceptionally well.
> However our customer noticed a strange search result, in that when looking
> for a specific value for the field 'position' in an indexed field it
> returns
> another value in addition to the one searched for. The search is:
>
> position:"LH off" - this correctly returns all results for entries
> which
> are indexed with 'position' of "LH off"
>
> position:"LH on" - this returns the results for 'position' of "LH on"
> followed by all the results for "LH off", we cannot understand why "LH off"
> is returned in these circumstances for an Indexed search.
>
> Any help greatly appreciated.
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Search-on-indexed-value-not-restrictive-under-one-circumstance-tp3335176p3335176.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>



--
Mr. Dnyaneshwar Dewadkar
Dept. of Information Technology


hossman_lucene at fucit

Sep 16, 2011, 10:47 AM

Post #3 of 4 (404 views)
Permalink
Re: Search on indexed value not restrictive under one circumstance [In reply to]

: position:"LH on" - this returns the results for 'position' of "LH on"
: followed by all the results for "LH off", we cannot understand why "LH off"
: is returned in these circumstances for an Indexed search.

wild guess: is this is a text field where "on" listed as a stop word?

if it is, you are just searching for 'position:"LF"' and the result
ordering is a conincidence of length normalization (the "LF on" docs only
contain the one term "LF" and the "LF off" docs cointain two terms, so the
shorter docs score higher)

if that's not it, then we need a lot more info about your schema, your
data, specifics of the queries, the score explanations, etc...

-Hoss


chris.chadwick at banctec

Nov 3, 2011, 9:14 AM

Post #4 of 4 (324 views)
Permalink
Re: Search on indexed value not restrictive under one circumstance [In reply to]

Hi

Thanks for this excellent reply. You are quite correct "on" is listed as a
stopword

Thanks for your help
Chris

--
View this message in context: http://lucene.472066.n3.nabble.com/Search-on-indexed-value-not-restrictive-under-one-circumstance-tp3335176p3477601.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Lucene general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.