Re: to prevent number-of-matching-terms in contributing score

2011-11-17 Thread Samarendra Pratap
On Thu, Nov 17, 2011 at 6:59 AM, Chris Hostetter wrote: > > : 1. "omitTermFreqAndPositions" is very straightforward but if I avoid > : positions I'll refuse to serve phrase queries. I had searched for this in > > but do you really need phrase queries on your "cat" field? i thought the > point wa

Re: to prevent number-of-matching-terms in contributing score

2011-11-16 Thread Chris Hostetter
: 1. "omitTermFreqAndPositions" is very straightforward but if I avoid : positions I'll refuse to serve phrase queries. I had searched for this in but do you really need phrase queries on your "cat" field? i thought the point was to have simple matching on those terms? : 2. Function query se

Re: to prevent number-of-matching-terms in contributing score

2011-11-16 Thread Chris Hostetter
: 1. "omitTermFreqAndPositions" is very straightforward but if I avoid : positions I'll refuse to serve phrase queries. I had searched for this in but do you really need phrase queries on your "cat" field? i thought the point was to have simple matching on those terms? : 2. Function query se

Re: to prevent number-of-matching-terms in contributing score

2011-11-10 Thread Samarendra Pratap
No solutions to the problem? OK. I'll look for the changes in source code and if I succeed I'll share it here for feedback. Thanks On Tue, Nov 8, 2011 at 5:06 PM, Samarendra Pratap wrote: > Hi Chris, > Thanks for the insight. > > 1. "omitTermFreqAndPositions" is very straightforward but if I

Re: to prevent number-of-matching-terms in contributing score

2011-11-08 Thread Samarendra Pratap
Hi Chris, Thanks for the insight. 1. "omitTermFreqAndPositions" is very straightforward but if I avoid positions I'll refuse to serve phrase queries. I had searched for this in past as well but I finally reached to the conclusion that there is no thing like "omitTermFreq" (only). Perhaps because

Re: to prevent number-of-matching-terms in contributing score

2011-11-07 Thread Chris Hostetter
: You can write your custom similarity implementation, and override the : /lengthNorm()/ method to return a constant value. The postered already said (twice!) that they have already set omitNorms=true, so lengthNorm won't even be used omiting norms (or mucking with norms by modifying the lengt

Re: to prevent number-of-matching-terms in contributing score

2011-11-07 Thread pravesh
effect(also set /omitNorms="true"/ for your fields where you need this feature) Regds Pravesh -- View this message in context: http://lucene.472066.n3.nabble.com/to-prevent-number-of-matching-terms-in-contributing-score-tp3486373p3486512.html Sent from the Solr - User mailing list

Re: to prevent number-of-matching-terms in contributing score

2011-11-07 Thread Samarendra Pratap
rebuild the index from scratch. Since this is index time factor, > you > need to build complete index from scratch. > > Regds > Pravesh > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/to-prevent-number-of-matching-terms-in-contributing-score-

Re: to prevent number-of-matching-terms in contributing score

2011-11-07 Thread pravesh
Did you rebuild the index from scratch. Since this is index time factor, you need to build complete index from scratch. Regds Pravesh -- View this message in context: http://lucene.472066.n3.nabble.com/to-prevent-number-of-matching-terms-in-contributing-score-tp3486373p3486447.html Sent from

to prevent number-of-matching-terms in contributing score

2011-11-07 Thread Samarendra Pratap
Hi everyone! We are working on Solr - 3.4. In Short: If my query term matches more than one words I want it to be considered as one match (in a particular field). Details: Our index has a multi-valued field "category" which contains possible category names of the company. It is entered by th