org.nuiton.wikitty.solr
Class WikittySearchEnginSolr.ReindexChildTreeNode
java.lang.Object
org.nuiton.wikitty.solr.WikittySearchEnginSolr.ReindexChildTreeNode
- Enclosing class:
- WikittySearchEnginSolr
protected class WikittySearchEnginSolr.ReindexChildTreeNode
- extends Object
Helper to get information nodes and elements for reindexation.
|
Method Summary |
Collection<String> |
getExcludedNodeIds(String childId)
|
Collection<String> |
getIncludedNodeIds(String childId)
|
String |
getParent(String nodeId)
|
Collection<String> |
getReindexIds()
|
protected void |
putChild(Map<String,Collection<String>> map,
String nodeId,
String childId)
|
protected void |
putChildren(Map<String,Collection<String>> map,
String nodeId,
Collection<String> childIds)
|
void |
putExcludedChild(String nodeId,
String childId)
|
void |
putExcludedChildren(String nodeId,
Collection<String> childIds)
|
void |
putIncludedChild(String nodeId,
String childId)
|
void |
putIncludedChildren(String nodeId,
Collection<String> childIds)
|
void |
putParent(String nodeId,
String parentId)
|
void |
reindex()
Add in doc fields on association between nodes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
includedNodeIds
protected Map<String,Collection<String>> includedNodeIds
excludedNodeIds
protected Map<String,Collection<String>> excludedNodeIds
parents
protected Map<String,String> parents
WikittySearchEnginSolr.ReindexChildTreeNode
public WikittySearchEnginSolr.ReindexChildTreeNode()
putIncludedChildren
public void putIncludedChildren(String nodeId,
Collection<String> childIds)
putExcludedChildren
public void putExcludedChildren(String nodeId,
Collection<String> childIds)
putIncludedChild
public void putIncludedChild(String nodeId,
String childId)
putExcludedChild
public void putExcludedChild(String nodeId,
String childId)
getExcludedNodeIds
public Collection<String> getExcludedNodeIds(String childId)
getIncludedNodeIds
public Collection<String> getIncludedNodeIds(String childId)
putChildren
protected void putChildren(Map<String,Collection<String>> map,
String nodeId,
Collection<String> childIds)
putChild
protected void putChild(Map<String,Collection<String>> map,
String nodeId,
String childId)
putParent
public void putParent(String nodeId,
String parentId)
getParent
public String getParent(String nodeId)
getReindexIds
public Collection<String> getReindexIds()
reindex
public void reindex()
throws org.apache.solr.client.solrj.SolrServerException
- Add in doc fields on association between nodes.
For example if you have a element in node with parent, like this
A -> B -> C => element, the method add field in document solr :
TreeNode.root : A
TreeNode.A : B
TreeNode.B : C
TreeNode.C : TreeNode.empty
- Throws:
org.apache.solr.client.solrj.SolrServerException
Copyright © 2009-2010 CodeLutin. All Rights Reserved.