Re: document boost at lucene 4.8.1

2014-09-21 Thread Shai Erera
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,

document boost at lucene 4.8.1

2014-09-21 Thread #LI JUN#
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

Re: 3.6 - querying a no-norms field and getting document boost

2013-01-25 Thread mark harwood
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

3.6 - querying a no-norms field and getting document boost

2013-01-25 Thread mark harwood
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

RE: Wildcard searches and document boost

2009-12-20 Thread Uwe Schindler
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

Re: Wildcard searches and document boost

2009-12-20 Thread TorAtle
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

Re: Wildcard searches and document boost

2009-12-19 Thread AHMET ARSLAN
> 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

RE: Wildcard searches and document boost

2009-12-19 Thread Uwe Schindler
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

Wildcard searches and document boost

2009-12-19 Thread TorAtle
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

Re: document boost and omitted norms

2008-04-05 Thread Karl Wettin
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

Re: document boost and omitted norms

2008-04-05 Thread Karl Wettin
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

Re: document boost and omitted norms

2008-04-05 Thread Michael McCandless
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 ---

document boost and omitted norms

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

Re: document boost

2008-01-31 Thread Mike Grafton
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

Re: document boost

2008-01-30 Thread Yonik Seeley
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

Re: document boost

2008-01-30 Thread Mark Miller
. 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 >

Re: document boost

2008-01-30 Thread Mike Grafton
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

Re: document boost

2008-01-30 Thread Mark Miller
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

document boost

2008-01-30 Thread Mike Grafton
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

RE: Document boost, is it working?

2007-10-31 Thread Bruno Dery
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

Re: Document boost, is it working?

2007-10-31 Thread Andrzej Bialecki
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

RE: Document boost, is it working?

2007-10-30 Thread Bruno Dery
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

Re: Document boost, is it working?

2007-10-30 Thread John Griffin
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&#

Re: Document boost, is it working?

2007-10-30 Thread John Griffin
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&#

Document boost, is it working?

2007-10-30 Thread Bruno Dery
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&#

Re: Document Boost

2007-04-19 Thread Erick Erickson
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

Re: Document Boost

2007-04-19 Thread Les Fletcher
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

Re: Document Boost

2007-04-19 Thread Chris Hostetter
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

Re: Document Boost

2007-04-19 Thread Les Fletcher
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

Re: Document Boost

2007-04-19 Thread HG1212
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

Re: Document Boost

2007-04-19 Thread Erick Erickson
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. ---

Document Boost

2007-04-19 Thread HG1212
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