lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shahzad73 <>
Subject Find documents that are composed of % words
Date Wed, 09 Oct 2013 03:29:52 GMT
Is there a way that in Solr Query     i find documents that is composed of n
number of words. for example here is the list of words
- Love
- Ice
- Cream
- Sunny
- I
- To
- A
- On
- Elephant
- Balloon

And a percentage such as: 80%

Let’s assume you’re analyzing the text of the following sentence.

“I love to eat ice cream on a sunny day”

This sentence contains 10 words, and only 2 (Day and Eat) of them do not
appear on the list. So the score for this sentence would be 80%. So this
would be a valid search result.

If the user had entered 90%, then this sentence would not be a valid result,
since more than 10% aren’t on the list


View this message in context:
Sent from the Solr - User mailing list archive at

View raw message