Hi Pavel,
I had the similar problem several years ago - I had to find
geographical locations in textual descriptions, geocode these objects
to lat/long during indexing process and allow users to filter/sort
search results to specific geographical areas. The important issue was
that there were seve
Have a look at http://lucene.apache.org/java/3_0_2/scoring.html on how Lucene's
scoring works. You can override the Similarity class in Solr as well via the
schema.xml file.
On Dec 15, 2010, at 10:28 AM, Pavel Minchenkov wrote:
> Hi,
> Please give me advise how to create custom scoring. I ne
Also, when taking the Similarity suggestion below note two things in
Lucene's default behavior that you seem to wish to avoid:
The first is IDF - but only for multi-term queries - otherwise ignore this
comment.
For multi term queries to only consider term frequency and doc length, you
may want to
Sounds to me that lucene should do a pretty good job without any extra
work on your part. See javadocs for
org.apache.lucene.search.Similarity
for details on how it works. You can change things by providing your
own implementation.
There is also the org.apache.lucene.search.function package but