com.atlassian.confluence.search.lucene
Class LabelExtractor

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.LabelExtractor
All Implemented Interfaces:
com.atlassian.bonnie.search.Extractor

public class LabelExtractor
extends java.lang.Object
implements com.atlassian.bonnie.search.Extractor

Extract label data from content entity objects.


Field Summary
static java.lang.String INHERITED_LABEL_FIELD
          The same as LABEL_FIELD, but for labels inherited from a containing object (i.e.
static java.lang.String INHERITED_LABEL_TEXT_FIELD
          The same as LABEL_TEXT_FIELD, but for labels inherited from a containing object (i.e.
static java.lang.String LABEL_FIELD
          Assigned multiple fields of namespaced labels
static java.lang.String LABEL_TEXT_FIELD
          This field is assigned a value consisting of a space delimited list of all the publicly visible labels on a piece of content
 
Constructor Summary
LabelExtractor()
           
 
Method Summary
 void addFields(org.apache.lucene.document.Document document, java.lang.StringBuffer defaultSearchableText, com.atlassian.bonnie.Searchable searchable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_FIELD

public static final java.lang.String LABEL_FIELD
Assigned multiple fields of namespaced labels

See Also:
Constant Field Values

LABEL_TEXT_FIELD

public static final java.lang.String LABEL_TEXT_FIELD
This field is assigned a value consisting of a space delimited list of all the publicly visible labels on a piece of content

See Also:
Constant Field Values

INHERITED_LABEL_FIELD

public static final java.lang.String INHERITED_LABEL_FIELD
The same as LABEL_FIELD, but for labels inherited from a containing object (i.e. comments will get the labels of the object they are commenting on.

See Also:
Constant Field Values

INHERITED_LABEL_TEXT_FIELD

public static final java.lang.String INHERITED_LABEL_TEXT_FIELD
The same as LABEL_TEXT_FIELD, but for labels inherited from a containing object (i.e. comments will get the labels of the object they are commenting on.

See Also:
Constant Field Values
Constructor Detail

LabelExtractor

public LabelExtractor()
Method Detail

addFields

public void addFields(org.apache.lucene.document.Document document,
                      java.lang.StringBuffer defaultSearchableText,
                      com.atlassian.bonnie.Searchable searchable)
Specified by:
addFields in interface com.atlassian.bonnie.search.Extractor


Copyright © 2003-2014 Atlassian. All Rights Reserved.