Re: More Like This on numeric fields - BF accepted by MLT handler

2015-09-28 Thread Upayavira
You could use the MLT query parser, and combine that with other queries, whether as filters or boosts. You can't yet use stream.body yet, so would need to use the handler if you need that. Upayavira On Mon, Sep 28, 2015, at 09:53 AM, Alessandro Benedetti wrote: > Hi Upaya, > thanks for the

Re: More Like This on numeric fields - BF accepted by MLT handler

2015-09-28 Thread Alessandro Benedetti
Hi Upaya, thanks for the explanation, I actually already did some investigations about it ( my first foundation was : http://cephas.net/blog/2008/03/30/how-morelikethis-works-in-lucene/ ) and then I took a look to the code. Was just wondering what the community was thinking about

Re: More Like This on numeric fields - BF accepted by MLT handler

2015-09-25 Thread Upayavira
Alessandro, I'd suggest you review the code of the MoreLikeThisHandler. It is a little knotty, but it would be worth your while understanding what is going on there. Basically, there are three phases: phase #1: parse the source document into a list of terms (avoided if term vectors enabled and

More Like This on numeric fields - BF accepted by MLT handler

2015-09-25 Thread Alessandro Benedetti
Hi guys, was just investigating a little bit in how to include numeric fields in the MLT calculations. As we know, we are currently building a smart lucene query based on the document in input ( the one to search for similar ones) and run this query to obtain the similar docs. Because the MLT is