com.atlassian.confluence.search.lucene.extractor
Class SpaceKeyAndNameExtractor

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

public class SpaceKeyAndNameExtractor
extends Object
implements com.atlassian.bonnie.search.Extractor

Extracts and indexes the space key and name for searchables that belong to a space. Also Adds a field called IN_SPACE_FIELD to allow PersonalInformation objects to be retrieved in searches. For more details please see PermittedSpacesQueryMapper.convertToLuceneQuery(com.atlassian.confluence.search.v2.SearchQuery)


Field Summary
static String IN_SPACE_FIELD
           
 
Constructor Summary
SpaceKeyAndNameExtractor()
           
 
Method Summary
 void addFields(org.apache.lucene.document.Document document, 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

IN_SPACE_FIELD

public static final String IN_SPACE_FIELD
See Also:
Constant Field Values
Constructor Detail

SpaceKeyAndNameExtractor

public SpaceKeyAndNameExtractor()
Method Detail

addFields

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


Copyright © 2003-2012 Atlassian. All Rights Reserved.