You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexander Lantz (JIRA)" <ji...@apache.org> on 2016/07/21 09:31:20 UTC
[jira] [Created] (SOLR-9327) Graph traversalFilter can't read
"-field:x" or "NOT field:x" while "field:x" works fine.
Alexander Lantz created SOLR-9327:
-------------------------------------
Summary: Graph traversalFilter can't read "-field:x" or "NOT field:x" while "field:x" works fine.
Key: SOLR-9327
URL: https://issues.apache.org/jira/browse/SOLR-9327
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Environment: Windows 10
Reporter: Alexander Lantz
The problem I am facing is that traversalFilter "(-field:x)" won't return any results even though it probably should.
More information: I have set up a test core with all my fields stored in a text_general field. Default solrconfig. I have a simple chaining where im using from parameter as document id. And a to field storing all ids of each documents children. And the graph parser works fine, its just this kind of filter that does not work for me.
I have documents with field with value a or b.
a query like this:
```
q=*
fq={!graph from=id to=to returnRoot=false traversalFilter="(field:b)" }id:0
This query filters away any document and its children that does not have b as value on field.
```
```
q=*
fq={!graph from=id to=to returnRoot=false traversalFilter="(-field:b)" }id:0
```
Should then work in the opposite. Filter away documents with b as value. But this does not work for some reason.
from solrquerysyntax: https://wiki.apache.org/solr/SolrQuerySyntax
"Pure negative queries (all clauses prohibited) are allowed. -inStock:false finds all field values where inStock is not false." - I believe this should apply to traversalFilter as well for more dynamic filters.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org