lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Meeraj Kunnumpurath <>
Subject Search Ranking
Date Wed, 16 May 2012 19:41:13 GMT

I am quite new to Lucene. I am trying to use it to index listings of local
businesses. The index has only one field, that stores the attributes of a
listing as well as email addresses of users who have rated that business.

For example,

Listing 1: "XYZ Takeaway London"
Listing 2: "ABC Takeaway London"

Now when the user does a search with "Takeaway", how do I
get listing 1 to always come before listing 2, because it has the term appear twice where as listing 2 has it only once?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message