Saturday, September 28, 2013

O idiota eu escuto.-> Bargain Resolution

The Basic's is the Basic... and ina sum a subtraction can cut some letters to the president. Practicing "Mamma" is good for me. Around ~37, little bit up.

You will just know a "Knuth" algo "by hand", until you execute it manually.

Now will "born" by "pure evil".

"The first customer of a Open Source software, is the author".







package org.nanotek.lucene;

import java.util.Date;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.TextField;
import org.apache.lucene.document.LongField;
import org.apache.lucene.document.Document;

public class TextDocumentBuilder implements LuceneDocumentBuilder<String> {

private String textFieldName = "TextData";

@Override
public Document buildDocument(String source) {
Document document = new Document();
Field wordField = new TextField(textFieldName, source, Field.Store.YES);
document.add(wordField);
Field modifiedField = new LongField("modified" , new Date().getTime() , Field.Store.YES);
document.add(modifiedField);
return document;
}

public String getTextFieldName() {
return textFieldName;
}

public void setTextFieldName(String textFieldName) {
this.textFieldName = textFieldName;
}

}