Re: Restrict search on term/phrase count in document.

2018-11-20 Thread Modassar Ather
Thanks for your replies. The requirement is basically to avoid documents which may have a match but with very less number of term or phrase in it. May a be 1/2 matches. The user is interested in those document which has matched term/phrase beyond a certain number. This can be a valid

Re: Restrict search on term/phrase count in document.

2018-11-19 Thread Alessandro Benedetti
I agree with Alexandre, it seems suspicious. Anyway, if you want to query for single term frequencies occurrence you could make use of the function range query parser : https://lucene.apache.org/solr/guide/6_6/other-parsers.html#OtherParsers-FunctionRangeQueryParser And the function: termfreq

Re: Restrict search on term/phrase count in document.

2018-11-05 Thread Alexandre Rafalovitch
That is kind of unusual. What is the business issue you are trying to solve? Perhaps there is a different way to look at this problem. Regards, Alex On Mon, Nov 5, 2018, 5:20 AM Modassar Ather Hi, > > Is there a way to restrict search with a term/phrase occurring n number of > times in it?

Restrict search on term/phrase count in document.

2018-11-05 Thread Modassar Ather
Hi, Is there a way to restrict search with a term/phrase occurring n number of times in it? For example, find the documents which has a term/phrase 5 or more times in them. The "Terms component" seems to provide a way but not sure how it will work for complex queries. Please note that the Solr