[
https://issues.apache.org/jira/browse/JENA-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16168964#comment-16168964
]
Andy Seaborne edited comment on JENA-1388 at 9/16/17 3:55 PM:
--------------------------------------------------------------
I have managed to recreate the situation (without analysers).
Lucene documentation:
{quote}The AND operator matches documents where both terms exist anywhere in
the text of a single document.{quote}
What seems to be happening is that there are two documents in the index, one
for each predicate indexed. Hence the AND is false.
Needs further investigation.
was (Author: andy.seaborne):
I have managed to recreate the situation (without analysers).
> Lucene text search across multiple fields ("AND") yields no results
> -------------------------------------------------------------------
>
> Key: JENA-1388
> URL: https://issues.apache.org/jira/browse/JENA-1388
> Project: Apache Jena
> Issue Type: Bug
> Components: Text
> Affects Versions: Jena 3.4.0
> Environment: CentOS 7.3, OpenJDK 64-Bit, v1.8.0_141-b16
> Reporter: Vilnis Termanis (Iotic Labs)
> Labels: index, lucene, search
> Attachments: config-fields.ttl, multi_field.ttl, multi_index.sparql
>
>
> Searching across two Lucene text indexed fields produces potentially
> unexpected results. (The following assumes that the string supplied to each
> field does match and is tied to the same uid/subject.)
> # A query across two fields with *OR* produces two equal rows
> # The same query but with *AND* produces no rows
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)