You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Kevin Watters (JIRA)" <ji...@apache.org> on 2016/08/19 17:19:20 UTC

[jira] [Commented] (SOLR-9415) graph search filter edge

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

Kevin Watters commented on SOLR-9415:
-------------------------------------

Hello cmd,  
Are you using the GraphQueryParser? If so, you can add a "traversalFilter" with the query "relationship:College"  ... 

should be something like:

 !{graph from="name1" to="name2" traversalFilter="relationship:College_school_classmate"}name1:tom

-Kevin


> graph search filter edge
> ------------------------
>
>                 Key: SOLR-9415
>                 URL: https://issues.apache.org/jira/browse/SOLR-9415
>             Project: Solr
>          Issue Type: Wish
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.1
>            Reporter: cmd
>             Fix For: 6.x
>
>
> currently solr graph hasn't edge concept! for example:
> name1(node),name2(node),relationtype,time,other edge attr.....
> tom,alice,College_school_classmate,2016-10-01 
> tom,alice,High_school_classmate,2013-10-01
> tom,alice,middle_school_classmate,2009-10-01
> tom,alice,Primary_school_classmate,2005-10-01 
> tom,Smith,College_school_classmate,2016-10-01 
> tom,Smith,High_school_classmate,2013-10-01
> tom,Smith,middle_school_classmate,2009-10-01
> tom,Smith,Primary_school_classmate,2005-10-01 
> node
> tom  age:23 sex:male addr:xxxx
> Smith age:25 sex.......................
> alice   .........................................
> i want to filter: tom time:[2009 to 2013]  and addr:xxxx     and      relationtype=College is who?
> refer: http://graphml.graphdrawing.org/primer/graphml-primer.html



--
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