David Barne don't like Search Engines, it is just another reactionary from the "classical relations", hetero probably with just '1 "single" "girl friends".
"Podemos fazer pela dor, pelo amor ou podemos não fazer".... Outra "Merkel" Kissiacha....
VERY but VERY strct targeting on Lucene ->BaseDocumentBuilder.
The way that i like.
TODU -> Check storage of "full content" on BOSS Docs. Nao tem como não achar TH uns cara massa pra cima. Onde pegar ta baum, se forem "muitos" com "bastante".
package org.nanotek.lucene;
import java.util.Date;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.LongField;
import org.apache.lucene.document.TextField;
import org.nanotek.cms.domain.lucene.BaseDocument;
public class BaseDocumentBuilder implements LuceneDocumentBuilder<BaseDocument> {
public BaseDocumentBuilder() {
}
@Override
public Document buildDocument(BaseDocument source)
throws DocumentBuilderException {
Document document = new Document();
Field idField = new TextField("id", source.getId(), Field.Store.YES);
document.add(idField);
Field wordField = new TextField("content", source.getContent(), Field.Store.YES);
document.add(wordField);
Field referField = new TextField("referURL", source.getReferURL(), Field.Store.YES);
document.add(referField );
Field modifiedField = new LongField("modified" , new Date().getTime() , Field.Store.YES);
document.add(modifiedField);
return document;
}
}