lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
Date Fri, 04 Aug 2017 21:37:01 GMT

    [ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115001#comment-16115001
] 

ASF GitHub Bot commented on SOLR-11190:
---------------------------------------

GitHub user mrkarthik opened a pull request:

    https://github.com/apache/lucene-solr/pull/227

    SOLR-11190: Fix GraphQuery not working if field has only docValues

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mrkarthik/lucene-solr jira/SOLR-11190

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/227.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #227
    
----
commit b0d568f58d408fd5bbbac5f0e88c795ac3a163ad
Author: Karthik Ramachandran <kramachandran@commvault.com>
Date:   2017-08-04T21:34:02Z

    SOLR-11190: Fix GraphQuery not working if field has only docValues

----


> GraphQuery not working if field has only docValues
> --------------------------------------------------
>
>                 Key: SOLR-11190
>                 URL: https://issues.apache.org/jira/browse/SOLR-11190
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: query parsers
>    Affects Versions: 6.6
>            Reporter: Karthik Ramachandran
>            Assignee: Karthik Ramachandran
>         Attachments: SOLR-11190.patch
>
>
> Graph traversal is not working if field has only docValues since the construction of
leaf or parent node queries uses only TermQuery.
> \\ \\
> {code:xml|title=managed-schema|borderStyle=solid}
> <schema name="graph" version="1.6">
>     <field name="_version_" type="long" indexed="false" stored="false" docValues="true"
/>
>     <field name="id" type="string" indexed="false" stored="false" docValues="true"
/>
>     <field name="parentid" type="string" indexed="false" stored="false" docValues="true"
/>
>     <field name="name" type="string" indexed="false" stored="false" docValues="true"
/>
>     <uniqueKey>id</uniqueKey>
>     <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
>     <fieldType name="long" class="solr.TrieLongField" docValues="true" precisionStep="0"
positionIncrementGap="0"/>
> </schema>
> {code}
> {code}
> curl -XPOST -H 'Content-Type: application/json' 'http://localhost:8983/solr/graph/update'
--data-binary ' {
>  "add" : { "doc" : { "id" : "1", "name" : "Root1" } },
>  "add" : { "doc" : { "id" : "2", "name" : "Root2" } },
>  "add" : { "doc" : { "id" : "3", "name" : "Root3" } },
>  "add" : { "doc" : { "id" : "11", "parentid" : "1", "name" : "Root1 Child1" } },
>  "add" : { "doc" : { "id" : "12", "parentid" : "1", "name" : "Root1 Child2" } },
>  "add" : { "doc" : { "id" : "13", "parentid" : "1", "name" : "Root1 Child3" } },
>  "add" : { "doc" : { "id" : "21", "parentid" : "2", "name" : "Root2 Child1" } },
>  "add" : { "doc" : { "id" : "22", "parentid" : "2", "name" : "Root2 Child2" } },
>  "add" : { "doc" : { "id" : "121", "parentid" : "12", "name" : "Root12 Child1" } },
>  "add" : { "doc" : { "id" : "122", "parentid" : "12", "name" : "Root12 Child2" } },
>  "add" : { "doc" : { "id" : "131", "parentid" : "13", "name" : "Root13 Child1" } },
>  "commit" : {}
> }'
> {code}
> {code}
> http://localhost:8983/solr/graph/select?q=*:*&fq={!graph from=parentid to=id}id:1
> or
> http://localhost:8983/solr/graph/select?q=*:*&fq={!graph from=id to=parentid}id:122
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message