lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Brusic <i...@brusic.com>
Subject Re: Search Ranking
Date Wed, 16 May 2012 19:49:34 GMT
Use the explain function to understand why the query is producing the
results you see.

http://lucene.apache.org/core/3_6_0/api/core/org/apache/lucene/search/Searcher.html#explain(org.apache.lucene.search.Query,
int)

Does your current query return Listing 2 first? That might be because
of term frequencies. Which analyzers are you using?

http://www.lucidimagination.com/content/scaling-lucene-and-solr#d0e63

Cheers,

Ivan

On Wed, May 16, 2012 at 12:41 PM, Meeraj Kunnumpurath
<meeraj.kunnumpurath@asyska.com> wrote:
> Hi,
>
> 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 fred@company.com barney@company.com
> fred@company.com"
> Listing 2: "ABC Takeaway London fred@company.com barney@company.com"
>
> Now when the user does a search with "Takeaway fred@company.com", how do I
> get listing 1 to always come before listing 2, because it has the term
> fred@company.com appear twice where as listing 2 has it only once?
>
> Regards
> Meeraj

---------------------------------------------------------------------
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