[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16119131#comment-16119131 ] Karthik Ramachandran commented on SOLR-11190: - I have updated the patch with the check. > 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, SOLR-11190.patch, SOLR-11190.patch, > 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16117541#comment-16117541 ] Varun Thacker commented on SOLR-11190: -- I think we could do some field checks upfront in {{GraphQueryParser#parse}} . [~kramachand...@commvault.com] what do you think about adding them to the patch? > 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, SOLR-11190.patch, 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16117515#comment-16117515 ] Yonik Seeley commented on SOLR-11190: - Patch looks fine. bq. Also should we be validating the fieldType checks up front? If it improves something (like error messages) I suppose. It's not so related to this issue, but you can make further improvements at the same time if you wish. > 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, SOLR-11190.patch, 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16117095#comment-16117095 ] Varun Thacker commented on SOLR-11190: -- Hi Karthik, The patch doesn't apply cleanly after today's SOLR-10939 commit. Can you please update the patch > 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, 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115444#comment-16115444 ] Karthik Ramachandran commented on SOLR-11190: - Agreed, If the field is indexed we should use TermInSetQuery. I have fixed it, you can check it in pull request. I will update the patch soon. > 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115054#comment-16115054 ] Varun Thacker commented on SOLR-11190: -- Hi Karthik, In this patch if a field has both docValues=true and indexed=true then we'd still end up using DocValuesTermsQuery ? I think we should prefer TermInSetQuery if we have indexed=true enabled? > 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-11190) GraphQuery not working if field has only docValues
[ https://issues.apache.org/jira/browse/SOLR-11190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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 RamachandranDate: 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} > > docValues="true" /> > docValues="true" /> > docValues="true" /> > docValues="true" /> > id > > precisionStep="0" positionIncrementGap="0"/> > > {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=*:*={!graph from=parentid > to=id}id:1 > or > http://localhost:8983/solr/graph/select?q=*:*={!graph from=id > to=parentid}id:122 > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org