lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Wildcard Search
Date Fri, 08 May 2009 13:50:45 GMT
My *guess* is that what you're seeing is that wildcard searches are
not analyzed, in this case not run through the stemmer. So your
index only contains "system" and the funky variants (e.g. "systems/").
I don't really understand why you'd get "systems/" in your index, but
I'm assuming that your filter chain doesn't remove things like slashes.

So, you have "system" and "systems/" in your index, but not
"systems" due to stemming, so searching for "systems*"
translates into "systems" OR "systems/" OR.... and since
no documents have "systems", you don't get them as hits.

All that said, you need to revisit your indexing parameters to make
what happens fit your expectations. I'd advise getting a copy of Luke
and pointing it at your index in order to see what *really* gets put in
it.

Best
Erick



You need to either introduce filters that remove odd stuff like slashes

On Fri, May 8, 2009 at 9:25 AM, dabboo <agarg@sapient.com> wrote:

>
> Yes, thats correct. I have applied EnglishPorterFilterFactory at index time
> as well. Do you think, I should remove it and do the indexing again.
>
>
> Erick Erickson wrote:
> >
> > Are you by any chance stemming the field when you index?
> >
> > Erick
> >
> > On Fri, May 8, 2009 at 2:29 AM, dabboo <agarg@sapient.com> wrote:
> >
> >>
> >> Hi,
> >>
> >> I am facing a n wierd issue while searching.
> >>
> >> I am searching for word *sytem*, it displays all the records which
> >> contains
> >> system, systems etc. But when I tried to search *systems*, it only
> >> returns
> >> me those records, which have systems-, systems/ etc etc. It is
> >> considering
> >> wildcard as 1 or more character and not zero character.
> >>
> >> So, it is not returning records which has systems has one word. Is there
> >> any
> >> way to resolve this.
> >>
> >> Please suggest.
> >>
> >> Thanks,
> >> Amit Garg
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Wildcard-Search-tp23440795p23440795.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wildcard-Search-tp23440795p23445966.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message