r. That was less than I hoped for so I didn't
bother taking it any further. But I guess for some people a 10% saving
could be significant.
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18492642.html
Sent from the Lucene - Java U
16 jul 2008 kl. 02.55 skrev John Patterson:
Karl Wettin wrote:
Or just set the boost to zero on the individual filter fields, or on
the whole filter expression.
+(my query) +(filter1 OR filter2 AND filter3)^0
That sounds perfect! I thought that boosts would be multiplied
together to
ied together to
give 0 for the whole expression. But I never looked into it. So thanks
again.
I'll try this during the week and post my results.
John
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18478069.html
Sent from the Lucene - Java
15 jul 2008 kl. 18.44 skrev Yonik Seeley:
On Tue, Jul 15, 2008 at 10:24 AM, Karl Wettin
<[EMAIL PROTECTED]> wrote:
I have a number of fields that are used to filter documents from a
search.
They should not contribute to the score of the document but merely
decide
which documents are valid.
Karl Wettin wrote:
>
>
> Feel free to post it as an issue in the Jira when it's implemented.
>
>
Thanks a lot! Will do
John
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18470916.html
Sent from the Lucene - Jav
15 jul 2008 kl. 18.11 skrev John Patterson:
So it seems that creating a constant scoring TermQuery is the best
suggestion so far.
Would be really great if I could call
BooleanQuery.setConstantScore(1.0f) or
something.
You might be looking at implementing something like
public class N
On Tue, Jul 15, 2008 at 10:24 AM, Karl Wettin <[EMAIL PROTECTED]> wrote:
>> I have a number of fields that are used to filter documents from a search.
>> They should not contribute to the score of the document but merely decide
>> which documents are valid. i.e. it doesn't matter how rare they are
returns a constant score. That way instead of
being restricted to working with TermQuery you could wrap any type of query.
new ConstantScoreQuery(myExistingQuery, 1.0f);
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18469178.html
Sent from
be really great if I could call BooleanQuery.setConstantScore(1.0f) or
something.
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18469083.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
ms like overkill.
So it seems that creating a constant scoring TermQuery is the best
suggestion so far.
Thanks,
John
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18469025.html
Sent from the Lucene - Java Users mailing list archive at Na
BooleanQuery that Accepts Filters as
clauses (infrastructure is now there thanks to Paul , see LUCENE-584)
- Original Message
> From: John Patterson <[EMAIL PROTECTED]>
> To: java-user@lucene.apache.org
> Sent: Tuesday, 15 July, 2008 4:48:56 PM
> Subject: Re: Mixing non scored
ct?
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18467109.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PR
15 jul 2008 kl. 10.07 skrev John Patterson:
I have a number of fields that are used to filter documents from a
search.
They should not contribute to the score of the document but merely
decide
which documents are valid. i.e. it doesn't matter how rare they are
in the
index. I also have a
re truly no non-hack way to accomplish
this?
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18466151.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
something
that is surely a very common use case?
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18465937.html
Sent from the Lucene - Java Users mailing list archive at N
ce to create the filter
> and
> once to rank the results?
> --
> View this message in context:
> http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18465466.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> --
Erick Erickson wrote:
>
> One way would be to create Filters and add them in with
> ConstantScoreRangeQuery
>
Would that mean running the query twice? i.e. once to create the filter and
once to rank the results?
--
View this message in context:
http://www.nabble.com/Mixin
How can I turn off scoring of these "filter" fields?
>
> Thanks,
>
> John
> --
> View this message in context:
> http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18460018.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.
s used for free text
searching and it should be scored as normal.
How can I turn off scoring of these "filter" fields?
Thanks,
John
--
View this message in context:
http://www.nabble.com/Mixing-non-scored-an-scored-queries-tp18460018p18460018.html
Sent from the Lucene - Java User
19 matches
Mail list logo