Re: Mixing non scored an scored queries

2008-07-16 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-16 Thread Karl Wettin
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

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread Karl Wettin
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.

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread Karl Wettin
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

Re: Mixing non scored an scored queries

2008-07-15 Thread 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. i.e. it doesn't matter how rare they are

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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. -

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread eks dev
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

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread Karl Wettin
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: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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. -

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread Erick Erickson
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. > > > --

Re: Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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

Re: Mixing non scored an scored queries

2008-07-15 Thread Erick Erickson
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.

Mixing non scored an scored queries

2008-07-15 Thread John Patterson
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