Re: Exact sub-phrase matching?

2020-09-25 Thread Erick Erickson
Have you looked at edismax, pf2 and pf3? On Fri, Sep 25, 2020, 15:07 Gregg Donovan wrote: > Hello! > > I'm wondering what the state-of-the-art for matching exact sub phrases > within Lucene is. As a bonus, I'd love to attach a boost to each of the > subphrases matched (if possible). > > For exam

Exact sub-phrase matching?

2020-09-25 Thread Gregg Donovan
Hello! I'm wondering what the state-of-the-art for matching exact sub phrases within Lucene is. As a bonus, I'd love to attach a boost to each of the subphrases matched (if possible). For example: doc 1: "field": "tree skirt spring skirt spring dress" doc 2: "field": "christmas tree skirt win

PointInSetQuery dose not terminate early if DocIdSetBuilder's bitSet is null

2020-09-25 Thread hacker win7
Hi Lucene members, In Lucene-7.7.0, I find that in `PointInSetQuery.createWeight()`, and in the method `scorer()` after `values.intersect()`, if the `result.bitSet` is null, then the `result.build()` would use `concat()` to generate a Buffer and the length is 1. And the element of array is `NO_