It would be more informative for you to actually post your
schema definitions for the fields in question, along
with your copyfield. The summary in your first
post leaves a lot of questions unanswered...

But a couple of things.
1> beware the SOLR string type. It does NOT tokenize
     the input. Text type is usually what people want
     unless they are doing something special
     purpose.
2> WordDelimiterFilterFactory is often a source of
     misunderstanding, take a close look at
     http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
<http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters>3> I'd strongly
advise either really getting to know the admin
     page in SOLR and/or getting a copy of Luke to examine
     your index and see if what you *think* is in there actually is.
4> Try running your queries with debugQuery=on and see
     what that shows.


HTH
Erick

On Wed, Jan 27, 2010 at 6:09 AM, murali k <ilar...@gmail.com> wrote:

>
> I have found that my synonyms.txt file had
>
> kids,boys,girls,childrens,children,boys & girls,kid,boy,girl
>
> I ran analyzer, somehow it is matching with girl ,, i am not sure whats
> happening yet, so i removed ampersand
> Kids,boys,girls,childrens,children,boy,girl,kid
>
> I guessed when i add them comma separated it will do as a group and when
> any
> one the words are queried matches will be returned.
>
> it is working now... after i made that change in synonyms.txt file
>
>
>
>
>
>
> murali k wrote:
> >
> > Hi,
> > I am having trouble with indexing plurals,
> >
> > I have the schema with following fields
> > gender (field) - string (field type) (eg. data Boys)
> > all (field) - text (field type)  - solr.WhitespaceTokenizerFactory,
> > solr.SynonymFilterFactory, solr.WordDelimiterFilterFactory,
> > solr.LowerCaseFilterFactory, SnowballPorterFilterFactory
> >
> > i am using copyField from gender to all
> >
> > and searching on "all" field
> >
> > When i search for Boy, I get the results, If i search for Boys i dont get
> > results,
> > I have tried things like "boys bikes" - no results
> > "boy bikes" - works
> >
> > kid and kids are synonymns for boy and boys, so i tried adding
> > kid,kids,boy,boys in synonyms hoping it will work, it doesnt work that
> way
> >
> > I also have other content fields which are copied to "all" , and it
> > contains words like "kids, boys" etc...
> > any idea?
> >
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Plurals-in-solr-indexing-tp27335639p27336508.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to