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

Kevin Watters edited comment on SOLR-9415 at 8/19/16 5:20 PM:
--------------------------------------------------------------

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 +time:[2015-01-01 TO 
2016-01-01]"}name1:tom

-Kevin



was (Author: kwatters):
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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to