If I get your question right, you probably want to use the AND binary operator as in "samsung AND andriod AND GPS" or "+samsung +andriod +GPS"
On 26 October 2010 14:07, Varun Gupta <varun.vgu...@gmail.com> wrote: > Hi, > > I have lot of small documents (each containing 1 to 15 words) indexed in > Solr. For the search query, I want the search results to contain only those > documents that satisfy this criteria "All of the words of the search result > document are present in the search query" > > For example: > If I have the following documents indexed: "nokia n95", "GPS", "android", > "samsung", "samsung andriod", "nokia andriod", "mobile with GPS" > > If I search with the text "samsung andriod GPS", search results should only > conain "samsung", "GPS", "andriod" and "samsung andriod". > > Is there a way to do this in Solr. > > -- > Thanks > Varun Gupta >