Trying to add in synonyms at index time but it's not working as
expected. Here's the schema and example from synonyms.txt
synonyms.txt has :
watch, watches, watche, watchs
schema for the field :
fieldType name=text_ngram class=solr.TextField
positionIncrementGap=100
analyzer type=index
Im using EdgeNgrams to do the same thing rather than wild card searches.
More info here :
http://www.lucidimagination.com/blog/2009/09/08/auto-suggest-from-popular-queries-using-edgengrams/
Make sure your search phrase is enclosed in quotes as well so its
treated as a phrase rather than 2
Could you not just do your normal search with and add a filter query on?
fq=topoffer:true
That would then return only results with top offer : true and then use
whatever shuffling / randomising you like in your application.
Alternately you could even add sorting on relevance to show the top 5
Hi there,
I'm relatively new to Solr and have been playing around with it for a
few weeks now. I've got a system setup now that I'm currently quite
happy with and is returning some decent results (although there's always
room for improvement). Just hoping to get some feedback on the setup