Is there a way to search a sentence or words and the result will be same number of words but they are in different order, I know my question is confusing so I will just give an example:
if I search for a phrase flowing water I need the results to be water flowing or flowing water and if there are three words in a phrase like a wonder boy results that I need are boy wonder a, a boy wonder, boy a wonder, wonder a boy.
So there is no way to have a result with same exact number of jumbled words?
If not, is there a way to sort them by number of words or by relevance? e.g documents with most of the words will come first then the last one will only contain one word that matches.
Thank you for your time, I will try to do your suggestion and see where I can get to.
By the way, I have millions of records to index and the task that I needed to achieve is to get the exact words that is searched even though it is jumbled just like the example that I gave on my question. I think my other concern now is, if I proceed on what you suggest, the indexing will get a bit slow since I am using logstash to index the records. (PostgreSQL JDBC)
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.