|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.exist.storage.FulltextIndexSpec
public class FulltextIndexSpec
Contains information about which parts of a document should be fulltext-indexed for a specified doctype. It basically keeps a list of paths to include and exclude from indexing. Paths are specified using simple XPath syntax, e.g. //SPEECH will select any SPEECH elements, //title/@id will select all id attributes being children of title elements.
<fulltext default="all" attributes="no">
<include path="//div/para"/>
<include path="//nested" content="mixed"/>
</fulltext>
| Constructor Summary | |
|---|---|
FulltextIndexSpec(Map namespaces,
Element node)
Constructor for the IndexPaths object param def if set to true, include everything by default. |
|
| Method Summary | |
|---|---|
boolean |
getIncludeAlphaNum()
Include alpha-numeric data? |
boolean |
hasQNameIndex(QName qname)
|
boolean |
isSelective()
|
boolean |
match(NodePath path)
Check if a given path should be indexed. |
boolean |
matchAttribute(NodePath path)
Check if a given path should be indexed. |
boolean |
matchMixedElement(NodePath path)
Check if the element corresponding to the given path should be indexed as an element with mixed content, i.e. |
boolean |
preserveContent(NodePath path)
Check if a given path should be preserveContent. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FulltextIndexSpec(Map namespaces,
Element node)
throws DatabaseConfigurationException
DatabaseConfigurationException| Method Detail |
|---|
public boolean isSelective()
public boolean getIncludeAlphaNum()
public boolean match(NodePath path)
path - path to the node
public boolean matchAttribute(NodePath path)
path - path to the node
public boolean matchMixedElement(NodePath path)
path - public boolean hasQNameIndex(QName qname)
public boolean preserveContent(NodePath path)
path - path to the node
public String toString()
toString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||