lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Rosen <>
Subject RE: newbie scoring question
Date Thu, 16 Nov 2006 14:20:10 GMT
You can set the boost on specific terms within your query, I believe the 
syntax is:


So you can make a specific field's relevancy for a given term higher 
compared to another term using something like

Id_field:someterm^2 || blob_field:someterm

Im kind of a newb myself but I think this should work for you.

-----Original Message-----
From: Michael Rusch []
Sent: Wednesday, November 15, 2006 8:15 PM
To: Lucene Users
Subject: newbie scoring question

I have documents that have a variety of IDs and names by which people may
commonly refer to them.  There is one guaranteed unique ID and multiple
other names, synonyms, etc. that are "almost unique".  Furthermore, any
document may have text that refers to another document by any of these
various identifiers.

What I want is that when somebody does a search using one of these
identifiers, the document(s) identified by that identifier score the best.

For example, there could be document A identified by ABE-0000008, and
document B that has within it's content "this is kinda like ABE-0000008."  I
want a search for ABE-0000008 to hit both of these, but for A to score

I already am already indexing the identifier in the same field with the rest
of the content for the docs, so I'm getting hits to both, just not sure how
to achieve the scoring I want.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message