I'm embarking on a sandbox overhaul in order to unify the build process
across all codebases there (Ant 1.6 with and are the
key!). In my effort, I'm going to be questioning the codebases and
seeing if we need to do any cleansing. The end result is going to be a
clean sandbox package that w
Hi Group,
I have a little problem which is able of being solved easily from the
expertise within this group.
A index has beein generated. The document used looks like this:
Document doc = new Document();
doc.add(Field.Text("contents", new FileReader(file)));
doc.add(Field.Keyword("filename", fi
I believe since you created the field using a Reader, you have to use the
Field.readerValue() method instead of the stringValue() method and then handle the
reader appropriately. I don't know if there is anyway to determine which one is used
for a given field other than to test for null on the
My problem is before that. I only get one field, the "filename" field... the
"contents" field is totally missing and I have no idea why...
Ralf
> I believe since you created the field using a Reader, you have to use the
> Field.readerValue() method instead of the stringValue() method and then
>
Actually, creating a Field with a Reader means the field data is
"unstored". It is indexed, but the original text is not retrievable as
it is not in the index (yes, it is tokenized, but not kept as a unit,
and is very unlikely to be the same as the original text)
If you need the text to be sto
Hi,
thank you for this advice. I guess the usual way of searching and retrieving
the document is to search like I did (with the reduced info in the index
(only cleaned text)) and later load the file with the "filename" information. I
just realised that no example for this simple task is actually a
I have an application that is reading in XML files and indexing them. Each
XML file is 3K-6K bytes. This application preloads a database that I will
add to "on the fly" later. However, all I want it to do initially is take
some existing files and create the initial index as quick as I can.
Si