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 <[EMAIL PROTECTED]>
: Reply-To: java-user@lucene.apache.org, Lou Luqun <[EMAIL PROTECTED]>
: 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: [EMAIL PROTECTED]
: For additional commands, e-mail: [EMAIL PROTECTED]
:



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to