flaxsearch/luwak

IntervalsQueryMatch

Closed this issue · 2 comments

There is no generic QueryMatch class so CandidateMatcher is unable to store information about some generic matches. IntervalsQueryMatch does not inherit any class (like QueryMatch). Is it ok or not?

We used to have a generic QueryMatch object, but I removed it as being kind of useless. Thinking about it, though, it would be nice for CandidateMatcher to be parametrized by it's return type, and it could implement Iterable to allow you to do something like:

for (SimpleMatch match : monitor.match(doc, SimpleMatcher.FACTORY)) {
}

Will open a branch and try sketching something out.

Have committed to master in 6479e6a - have a look.