I try to implement full text search.
I have a question related to this subject.
I want to at search time, when i search a text, for example "Hello Saeed", return result only when all tokens of that text exist in a message.
this means in "Hello Saeed" that contains "Hello" and "Saeed" tokens just must be return messages that exist both of the words not one of them.
Hello I am Saeed ---> must be return
Hello I am Mike ---> must not be return (because at search time i searched "Hello Saeed" and 'Saeed' not exist in this sentence)
but for search "Hello" both of the previous sentences are approve.
finally my question is, how can i force text analyzer at search time to find all tokens are exist in search text?
what i know, minimum_should_match use for define minimum number should be match in list of match case.
but in my question i want to force tokens existence that exist in a text message in ONE match item not multiple. so seems to minimum_should_match is not useful here.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.