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
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
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
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