Re: Select all descendants in a relation index

2013-09-26 Thread Oussama Mubarak
Thank you very much Erick. Would you know by any chance of a tutorial or book that explains how to use PathHierarchyTokenizerFactory ? How does solr know how to generate the path ? Most examples online look like the one below, and don't explain how the path is generated:

Re: Select all descendants in a relation index

2013-09-24 Thread Oussama Mubarak
Thank you Erick. I actually do need it to extend to grandchildren as stated in "I need to be able to find *all descendants* of a node with one query". I already have an index that allows me to find the direct children of a node, what I need is to be able to get all descendants of a node (child

Re: Select all descendants in a relation index

2013-09-24 Thread Erick Erickson
Sure, index the parent node id (perhaps multiple) with each child and add &fq=parent_id:12. you can do the reverse and index each node with it's child node IDs to to ask the inverse question. This won't extend to grandchildren/parents, but you haven't stated that you need to do this. Best, Erick

Select all descendants in a relation index

2013-09-23 Thread Semiaddict
Hello, I am using Solr to index Drupal node relations (over 300k relations on over 500k nodes), where each relation consists of the following fields: - id : the id of the relation - source_id : the source (parent) node id - targe_id : the targe (child) node id I need to be able to find all desce