View Javadoc

1   package com.atlassian.bonnie.search;
2   
3   import com.atlassian.bonnie.Searchable;
4   import org.apache.lucene.document.Document;
5   
6   /**
7    * Populates Lucene {@link Document} from persistence via a {@link bucket.core.persistence.Handle}.
8    */
9   public interface DocumentBuilder
10  {
11      String HANDLE_FIELD_NAME = "handle";
12      String CLASSNAME_FIELD_NAME = "classname";
13      String CONTENT_FIELD_NAME = "contentBody";
14  
15      Document getDocument(Searchable searchable);
16  
17      String getHandleAttributeStringValue(Object obj);
18  }