Re: Constant score and stopwords strange behaviour

2020-06-25 Thread Paras Lehana
Hi, You can also change the multiplication factor in TF IDF snipped in the source code to 1 also. I know there would be a better method to handle stopwords now that you have used constant scoring but I wanted to mention my method by what we got rid of TF. On Thu, 25 Jun 2020 at 03:02, dbourassa

Re: Constant Score

2018-10-17 Thread Shawn Heisey
On 10/17/2018 5:06 PM, Vincenzo D'Amore wrote: I tried to use constant score into qf parameter but I had an exception. Is this normal? The qf parameter actually is something like this: field1^3 field2^4 field3^5... etc. You didn't actually say, but it sounds like you're trying to use "field^=

Re: Constant Score Queries and Function Queries

2009-10-26 Thread Grant Ingersoll
On Oct 25, 2009, at 2:36 PM, Chris Hostetter wrote: : Fair enough, I guess I was just kind of expecting a constant score query + a : function query to result in a score of whatever the function query is. This : is a common trick to sort by a function, but it's easy enough to just ^0 the

Re: Constant Score Queries and Function Queries

2009-10-25 Thread Chris Hostetter
: Fair enough, I guess I was just kind of expecting a constant score query + a : function query to result in a score of whatever the function query is. This : is a common trick to sort by a function, but it's easy enough to just ^0 the : non function clause. I think the root of hte issue is that

Re: Constant Score Queries and Function Queries

2009-10-23 Thread Grant Ingersoll
On Oct 22, 2009, at 9:44 PM, Chris Hostetter wrote: : > Why wouldn't you just query the function directly and leave out the *:* ? : : *:* was just a quick example, I might have other constant score queries, but I : guess I probably could do a filter query plus the function query, too.

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Chris Hostetter
: > Why wouldn't you just query the function directly and leave out the *:* ? : : *:* was just a quick example, I might have other constant score queries, but I : guess I probably could do a filter query plus the function query, too. I guess i don't udnerstand what your point was ... you mention

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Grant Ingersoll
On Oct 22, 2009, at 2:44 PM, Chris Hostetter wrote: : As a workaround, I can do: *:*^0 _val_:price_f, which gets rid of the query : norm factor. : : I realize I could override the similarity or use the workaround, but I was : just curious about what other people think of this. Why wouldn'

Re: Constant Score Queries and Function Queries

2009-10-22 Thread Chris Hostetter
: As a workaround, I can do: *:*^0 _val_:price_f, which gets rid of the query : norm factor. : : I realize I could override the similarity or use the workaround, but I was : just curious about what other people think of this. Why wouldn't you just query the function directly and leave out the *:*