The issue with synonym arise when i have number in synonym defination:
ccc =>cccc1,cccc2 gives following result in debugQuery= true : <str name="parsedquery">MultiPhraseQuery(all:"cccc (1 cccc) (2 ccc cccc) 3")</str> <str name="parsedquery_toString">all:"cccc (1 cccc) (2 ccc cccc) 3"</str> However fooaaa=> fooaaa, baraaa,bazaaa gives correct synonym results: <str name="parsedquery">all:fooaaa all:baraaa all:bazaaa</str> <str name="parsedquery_toString">all:fooaaa all:baraaa all:bazaaa</str> Any pointers to solve the issue with numbers in synonyms? Thanks, Prerna hossman wrote: > > > : I am not getting any search result for ccc. I have created indexes with > : string value. > : > : Do i need to change anything in schema .xml ? > : > : String tag from Schema.xml : > : <fieldType name="string" class="solr.StrField" sortMissingLast="true" > : omitNorms="true"> > : <analyzer type="query"> > > StrField doesn't use an <analyzer> ... if you look at the values you've > indexed with the LukeRequestHandler you'll see that the literal values are > in your index ... you'll want to change that to "solr.TextField" > > Most likely, you'll want to add an <analyzer type="index"> as well, > otherwise the same analyser will be used at index and at query time (so > you'll get synonym and worddelim expansion in both cases, and things won't > match the way you expect. > > > > > -Hoss > > > -- View this message in context: http://www.nabble.com/Synonym--format-not-working-tp20026988p20064274.html Sent from the Solr - User mailing list archive at Nabble.com.