lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: how can i give each words in the query a different weight?
Date Tue, 24 May 2005 02:10:06 GMT

the concept you are looking for is called a "boost" look for the
"setBoost" method in the java docs, or look for the word "boost" in the
documetnation of the QueryParser syntax...

http://lucene.apache.org/java/docs/queryparsersyntax.html

: Date: Mon, 23 May 2005 18:46:55 -0700
: From: Lou Luqun <louluqun@gmail.com>
: Reply-To: java-user@lucene.apache.org, Lou Luqun <louluqun@gmail.com>
: To: lucene-user@jakarta.apache.org
: Subject: how can i give each words in the query a different weight?
:
: Dear Sir/Madm:
:          I want to give each words in the query a different weight?but
: in the definition of query,it's not support this forms.how can i do
: it?can you give me some suggestion?
:        For example,There is a query "lucene similarity".i want to give
: "lucene" a weight of 0.8,and "similiarity" a weight of 0.2.how can i
: give the weight to the query?
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
: For additional commands, e-mail: java-user-help@lucene.apache.org
:



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message