How would I form a query where all of the words in a field must be present in
the query (but possibly more). For example, if I have the following words in
a text field: "John Smith"
A query for "John" should return no results
A query for "Smith" should return no results
A query for "John Smith"
There the same questions I've found in google:
Solr query must match all words/tokens in a field
http://stackoverflow.com/questions/10508078/solr-query-must-match-all-words-tokens-in-a-field
Syntax for query where all words in field must be present in query
http://stackoverflow.com/questions/1839
Thank you so match for answer!
I'm check Luwak solution.
By business case is very common and simple.
1) user search for products.
sample real query: smartphone samsung s3 black 32G
2) i have really big database of products.
I want return to user all products from my database:
"Samsung s3 32g BL