Use a MultiFieldQuerySearcher.
Like this;
{
"multi_match": {
"query":"quick brown fox",
"fields": [ "title", "body" ]
}
}
On Mon, 12 Feb 2018 at 22:04 Dominik Safaric
wrote:
> Unfortunately you've misunderstood my question. The thing is that the
> FuzzyQuery does no
Unfortunately you've misunderstood my question. The thing is that the
FuzzyQuery does not unfortunately satisfy the given requirements of mine, in
particular it is based on Levenshtein and not Hamming distance. Hence the need
to implement the custom Query instance.
As asked, how does Lucene int
Filtering by one query and scoring by a different query is easy: just put
the filter in a FILTER clause of a BooleanQuery and the scoring query in a
SHOULD clause. Documents that do not match the SHOULD clause will have a
score of zero.
I'm wondering that maybe you are looking for something like t
In particular, I have a document schema as follows:
{
"images": [{
"image_id": 1,
"features": {
"coarse_grained": ,
"fine_grained": [**]
}
}]
}
In the first run, using a custom Query instance I'd like to hit documents
by matching the *coarse_grained *field. A document is said to be matching
if th
Whether this is doable is going to depend on what you mean by "match[ing]
documents according to criteria X". Can you give an example?
Le ven. 9 févr. 2018 à 14:47, Dominik Safaric a
écrit :
> Hi,
>
> I am intending to implement a custom Query using Lucene 6.x and due to the
> lack of documentat
Hi,
I am intending to implement a custom Query using Lucene 6.x and due to the lack
of documentation concerned with a particular topic I have the following
questions.
The query is expected to implement a two-phase search, in the sense that during
the first run it matches documents according t