org.nuiton.wikitty.storage.solr
Class WikittySearchEngineSolr.ReindexChildTreeNode
java.lang.Object
org.nuiton.wikitty.storage.solr.WikittySearchEngineSolr.ReindexChildTreeNode
- Enclosing class:
- WikittySearchEngineSolr
protected static class WikittySearchEngineSolr.ReindexChildTreeNode
- extends Object
Helper to get information nodes and elements for reindexation.
|
Method Summary |
Collection<String> |
getExcludedNodeIds(String attachmentId)
|
Collection<String> |
getIncludedNodeIds(String attachmentId)
|
String |
getParent(String nodeId)
|
Collection<String> |
getReindexIds()
|
protected void |
putAttachements(Map<String,Collection<String>> map,
String nodeId,
Collection<String> attachmentIds)
|
protected void |
putAttachment(Map<String,Collection<String>> map,
String nodeId,
String attachmentId)
|
void |
putExcludedAttachment(String nodeId,
String attachmentId)
|
void |
putExcludedAttachments(String nodeId,
Collection<String> attachmentIds)
|
void |
putIncludedAttachment(String nodeId,
String attachmentId)
|
void |
putIncludedAttachments(String nodeId,
Collection<String> attchmentIds)
|
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 |
solrResource
protected SolrResource solrResource
solrServer
protected org.apache.solr.client.solrj.SolrServer solrServer
includedNodeIds
protected Map<String,Collection<String>> includedNodeIds
excludedNodeIds
protected Map<String,Collection<String>> excludedNodeIds
parents
protected Map<String,String> parents
WikittySearchEngineSolr.ReindexChildTreeNode
public WikittySearchEngineSolr.ReindexChildTreeNode(org.apache.solr.client.solrj.SolrServer solrServer,
SolrResource solrResource)
putIncludedAttachments
public void putIncludedAttachments(String nodeId,
Collection<String> attchmentIds)
putExcludedAttachments
public void putExcludedAttachments(String nodeId,
Collection<String> attachmentIds)
putIncludedAttachment
public void putIncludedAttachment(String nodeId,
String attachmentId)
putExcludedAttachment
public void putExcludedAttachment(String nodeId,
String attachmentId)
getExcludedNodeIds
public Collection<String> getExcludedNodeIds(String attachmentId)
getIncludedNodeIds
public Collection<String> getIncludedNodeIds(String attachmentId)
putAttachements
protected void putAttachements(Map<String,Collection<String>> map,
String nodeId,
Collection<String> attachmentIds)
putAttachment
protected void putAttachment(Map<String,Collection<String>> map,
String nodeId,
String attachmentId)
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-2011 CodeLutin. All Rights Reserved.