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.