You can read some discussion here:
http://search-lucene.com/m/Z2GP220szmS&subj=RE+What+is+equivalent+to+Document+setBoost+from+Lucene+3+6+inLucene+4+1+
.
I wrote a post on how to achieve that with the new API:
http://shaierera.blogspot.com/2013/09/boosting-documents-in-lucene.html.
Shai
On Sun,
Hi all,
How come in 4.8.1, the document.setBoost method is missing. So what is the
method for document level boost now?
Regards,
Jun
ect: 3.6 - querying a no-norms field and getting document boost
I have a 3.6 index with many no-norms fields and a single text field with norms
(a fairly common configuration). There is a document boost I have set at
index-time that will have been encoded into the text field's norms.
If I qu
I have a 3.6 index with many no-norms fields and a single text field with norms
(a fairly common configuration). There is a document boost I have set at
index-time that will have been encoded into the text field's norms.
If I query solely on a non-text field then the ranking does not appl
gt; Subject: Re: Wildcard searches and document boost
>
>
> > You need to change multiTermRewriteMethod of QueryParser.
> >
> qp.setMultiTermRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE)
> ;
>
> Thanks. So the normal way of doing this is se
nstant score method?
Tor Atle
--
View this message in context:
http://old.nabble.com/Wildcard-searches-and-document-boost-tp26857120p26864799.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsub
> For instance, when searching for "wash*" I want
> "Washington" (the city) to
> appear before "Washington Park", so I have boosted the
> "Washington"
> document. Unfortunately, when using WildcardQuery, the
> score is always 1.0.
>
> Luke says my query has been rewritten to
> "ConstantScore(myFie
orAtle [mailto:toratle...@gmail.com]
> Sent: Saturday, December 19, 2009 6:49 PM
> To: java-user@lucene.apache.org
> Subject: Wildcard searches and document boost
>
>
> I have indexed a number of geotagged locations and want the results sorted
> by
> relevance.
>
> For in
essage in context:
http://old.nabble.com/Wildcard-searches-and-document-boost-tp26857120p26857120.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apach
inking it would be nice to store a full float in an optional
document boost file. Perhaps with variable bytesize. But that would take
a lot of effort to update all related code.
Is there an easier way out here? Perhaps variable byte size per norms
and field? Document payloads? I don't know
ce to store a full float in an optional
document boost file. Perhaps with variable bytesize. But that would take
a lot of effort to update all related code.
Is there an easier way out here? Perhaps variable byte size per norms
and field? Document payloads? I don't know. Help much ap
Yes and yes.
Mike
Karl Wettin wrote:
Is it so that document and field boosts are omitted together with
Field#setOmitNorms? By setting lengthNorm to 1f in the Similarity
for these fields and not omitting norms would fix it?
karl
---
Is it so that document and field boosts are omitted together with
Field#setOmitNorms? By setting lengthNorm to 1f in the Similarity for
these fields and not omitting norms would fix it?
karl
-
To unsubscribe, e-mail: [EMA
hrough it.
> I did a really quick test re-adding a Solr example document but adding
> a document boost of 10...
> the fieldNorm increased by a factor of 10 as expected (explain below).
>
>
> 5.651948 = (MATCH) fieldWeight(text:solr in 26), product of:
> 1.4142135 = tf(t
Hi Mike, I think this issue probably belongs in the Solr lists since
it looks like you're indexing through it.
I did a really quick test re-adding a Solr example document but adding
a document boost of 10...
the fieldNorm increased by a factor of 10 as expected (explain below).
5.6
.
Can you post some code?
- Mark
Mike Grafton wrote:
> Hello folks,
>
> We're trying to use Lucene's scoring to do a fairly basic thing:
give a
> document (in this case, we index "articles") a boost based on an
integer
>
t;
> - Mark
>
> Mike Grafton wrote:
> > Hello folks,
> >
> > We're trying to use Lucene's scoring to do a fairly basic thing: give a
> > document (in this case, we index "articles") a boost based on an integer
> > value that we know at in
some code?
- Mark
Mike Grafton wrote:
Hello folks,
We're trying to use Lucene's scoring to do a fairly basic thing: give a
document (in this case, we index "articles") a boost based on an integer
value that we know at index-time. We want the document boost to affect the
fina
Hello folks,
We're trying to use Lucene's scoring to do a fairly basic thing: give a
document (in this case, we index "articles") a boost based on an integer
value that we know at index-time. We want the document boost to affect the
final document score linearly.
We thou
this document was indexed."
Then maybe it should simply be removed from Luke's display as you
mention.
-Original Message-
From: Andrzej Bialecki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 31, 2007 4:13 AM
To: java-user@lucene.apache.org
Subject: Re: Document boost, is it w
Bruno Dery wrote:
Thanks for the help, you're right your example works. However looking in
Luke I also see only ones (1 1 1) as the document boost.
Then perhaps this value should be removed from the Luke's display ...
because it will always read 1, and it's a correct value (se
Thanks for the help, you're right your example works. However looking in
Luke I also see only ones (1 1 1) as the document boost.
I imagine Luke use's Lucene's Document.getBoost() function. Shouldn't
this be considered a bug, as I'd expect to retrieve the same boost
nvestigate further and apparently setting the document boost does
nothing. In my example below, you'd expect the display the output 20 2
and 10 but I get 1 1 1. Is this normal behavior and if so how am I
supposed to use document boosting because it seems like I'm missing
something...
Here
nvestigate further and apparently setting the document boost does
nothing. In my example below, you'd expect the display the output 20 2
and 10 but I get 1 1 1. Is this normal behavior and if so how am I
supposed to use document boosting because it seems like I'm missing
something...
Here
apparently setting the document boost does
nothing. In my example below, you'd expect the display the output 20 2
and 10 but I get 1 1 1. Is this normal behavior and if so how am I
supposed to use document boosting because it seems like I'm missing
something...
Here
I hate to ask this (actually, I don't hate it, but...) "what behavior
of the scoring are you actually finding doesn't fit your needs?".
The reason I ask is that I've been asked to change the scoring,
that is, set boosts, based on some vague notion of "how
things should work" that is often just th
Oo I like the BAR_significant field idea. It seems that you'd
have to have one of those for every different level of boosting in your
document. But that is significantly easier than reforming a query for
30-odd fields.
The next quersion would be should you omit the boosted field word
The full post Erick alluded too may be helpful...
http://mail-archives.apache.org/mod_mbox/lucene-java-user/200609.mbox/[EMAIL
PROTECTED]
in general, if your goal is that words in the "metadata" of a document
should be worth more then words in the "body" then you should have two
fields: "metada
I am also releatively new to lucene and was wondering about this. The
way it seems to work, is that if you boost a field then you have to
actually specify that field in your query to benefit from that field
boost. Otherwise you'll search the default field and the boost will be
ignored. I hac
I am setting the boost at index time.
Thanks
--
View this message in context:
http://www.nabble.com/Document-Boost-tf3609748.html#a10088201
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To
the results are not as expected.
Any ideas how to accomplish this.
Thanks
HG
--
View this message in context:
http://www.nabble.com/Document-Boost-tf3609748.html#a10086883
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---
ds (added new fields to the document and
setting the boost for these fields) before adding to the document, but when
I do a search, the results are not as expected.
Any ideas how to accomplish this.
Thanks
HG
--
View this message in context:
http://www.nabble.com/Document-Boost-tf3609748.html
32 matches
Mail list logo