You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Erick Erickson <er...@gmail.com> on 2009/12/08 01:43:13 UTC

Re: Inconsistent Search Results for different flavors of same search term

First, this is the devloper's list, I think this question
would be better suited to the user's list.

You get searches to be case insensitive by
indexing and searching with an analyzer that, say,
lowercases. If you post on the user's list, please
include the analyzer definitions for the fields in
question *and* your query. From your email, I
can't tell if, for instance, you're even searching
against the same field for both terms. i.e. if you're
searching something like title:san jose then san
would go against the title field while jose would go
against the default search field...

If you want to be really thorough, also post the results
of your query with &debugQuery=on....

Schema browser in your SOLR admin page might
help, and Luke can be used to examin what's actually in
your index.

Best
Erick

On Mon, Dec 7, 2009 at 6:36 PM, insaneyogi3008 <in...@gmail.com> wrote:

>
> Hello,
>
> I was performing a search on different versions of the term "San Jose" on
> my
> Solr Instance ,  the differing versions being :
>
> san jose(all lowercase)
> San jose(One uppercase)
> San Jose (Capital first letters)
> SAN JOSE (ALL Caps)
>
> each of these phrases return a different number of "hits" back as response
> objects . for example
>
> san jose returns -> <result name="response" numFound="0" start="0">
> San jose returns -><result name="response" numFound="4" start="0">
> San Jose returns -><result name="response" numFound="16" start="0">
> SAN JOSE returns -> <result name="response" numFound="853" start="0">
>
> How do I make my search not case sensitive?
> --
> View this message in context:
> http://old.nabble.com/Inconsistent-Search-Results-for-different-flavors-of-same-search-term-tp26686294p26686294.html
> Sent from the Solr - Dev mailing list archive at Nabble.com.
>
>