Re: Custom scoring algorithm and Explanation extending.

2017-11-22 Thread Vadim Gindin
Thank's a lot! On Mon, Nov 20, 2017 at 11:22 PM, Adrien Grand wrote: > Hi Vadim, > > Le jeu. 16 nov. 2017 à 18:09, Vadim Gindin a écrit > : > > > 1. I would like to use my custom scoring algorithm. Is it make sense to > use > > Lucene with other scoring algorithm? What is the best way for that

Re: Custom scoring algorithm and Explanation extending.

2017-11-20 Thread Adrien Grand
Hi Vadim, Le jeu. 16 nov. 2017 à 18:09, Vadim Gindin a écrit : > 1. I would like to use my custom scoring algorithm. Is it make sense to use > Lucene with other scoring algorithm? What is the best way for that - > implement Similarity and own Queries? > It really depends what you are after. Sim

Re: custom scoring

2012-04-08 Thread Tri Cao
Hi,After reading through the IndexSearcher code, it seems I have to do the following:- implement a custom Collector to collect not just the doc IDs and score, but the fields I care about as well- extend ScoreDoc to hold the extra fields- when I get back a TopDocs from a search() call, I can go thro

Re: Custom scoring

2012-02-23 Thread Ahmet Arslan
> The problem is that coord() method is not used (or at least > so that i understand) neither in searching nor in indexing > What do i do wrong? If you want to see coord() values, use a multi-word query (two or more query terms) and go to last page of result set. --

Re: custom scoring

2012-01-16 Thread Ian Lea
Some values in the norm/boost area are stored encoded with some loss of precision. Details in the javadocs somewhere. What values do you get when you change the boost? -- Ian. 2012/1/14 ltomuno : > the following message comes from  Explanation explain >  0.09375  = (MATCH) fieldWeight(name:85

Re: Custom scoring for searhing geographic objects

2010-12-19 Thread Alexey Serba
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

Re: Custom scoring for searhing geographic objects

2010-12-15 Thread Grant Ingersoll
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

Re: Custom scoring for searhing geographic objects

2010-12-15 Thread Doron Cohen
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

Re: Custom scoring for searhing geographic objects

2010-12-15 Thread Ian Lea
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

Re: custom scoring help

2010-04-02 Thread Christopher Tignor
This code is in fact working. I had an error in my test case. Things seem to work as advertised. sorry / thanks - C>T> On Fri, Apr 2, 2010 at 10:20 AM, Christopher Tignor wrote: > Hello, > > I'm having a hard time implementing / understanding a very simple custom > scoring situation. > > I ha

Re: Custom scoring algorithm

2009-11-13 Thread Alberto Gimeno
Hi again. I've made a proof of concept using the boost factor. I have done the following: add a field for each feature and put the field boost factor as the feature value. private static void addDocument(String id, Map features, IndexWriter writer) throws IOException { Doc

RE: custom scoring

2008-07-18 Thread Steven A Rowe
Hi Sébastien, Have you looked into the DisjunctionMaxQuery ? From that page: A query that generates the union of documents produced by its subqueries, and that scores each document with the maximum