To answer partially my question, one key difference is in DefaultBulkScorer:
Lucene 4.10
public boolean score(Collector collector, int max) throws IOException {
...
if (max == DocIdSetIterator.NO_MORE_DOCS) {
scoreAll(collector, scorer);
return false;
}
I potentially found the issue, but I am wondering why the code worked in
the first place. Did the contract for the scorer change with Lucene 5?
The issue was that underneath, each sub scorer had a posting enum and the
initial document was not consumed on the first pass. Inside the
DefaultBulkScor
Hi Brian,
You’d need to use a SpanNotQuery - something along these lines (schematically!):
SpanNotQuery(
SpanTermQuery(“privilege”),
SpanNearQuery(
SpanTermQuery(“privilege”),
SpanNearQuery(“received”, “this”, “email” … ),
4
I think you can come close with
NOT "received this e-mail in error privilege"~8
(or some other slop factor than 8)
This isn't quite what you're asking for as it would also exclude
docs with
"received privilege this e-mail error in"
in the field. Although i suppose
NOT "received this e-mail in e
Hello-
I'm trying to configure a search that captures a term but excludes search
results that contain that same term if the term only appears in proximity
to certain other terms. See the below example. I want to get search
results for emails that contain the word "privilege". But I don't wan
Hi,
I am new to Lucene 5.4.0. I want to create class same as attached file, But
most of facet search class is missed in 5.4.0, Please let me know, I do write
Book list to add run time author and price in 5.4.0
Thanks,
M.Tharves
=
Dear,
Please share 5.4.0 sample code, some of package and class file changed in facet.
Regards,
M.Tharves
Desk +91 44 6619 4849
Cell +91 99400 40002