When you add the field content inside the document,
You can choose to have it
indexed and stored
indexed and not stored
not indexed and not stored
so in this case, you would want to add it as the indexed and stored
kind.
However it should then be evident that the size of the Directory
containing
ok, but as already said (see JAVADOC of Lucene =
org.apache.lucene.document.Field) it seem not to be possible to do that if I
add directly a stream e.g. reader:
Syntax: Field(String name, Reader reader)
Probably you have any code samples?
Thx
Simon Dietschi
= I have tried to move this posts
Hey,
I'm new to Lucene and I want to make a query to dynamically boost a document
slightly based on a date field. I'm not sure which classes are used to
calculate the boost, so I wanted to ask which classes I should extend to
accomplish this? I'm just asking so I can get to the job faster.
On Mar 30, 2006, at 8:50 AM, Schwenker, Stephen wrote:
I'm new to Lucene and I want to make a query to dynamically boost a
document slightly based on a date field. I'm not sure which
classes are used to calculate the boost, so I wanted to ask which
classes I should extend to accomplish
Actually, it's a very small tweak to the Field class to permit Reader values
other than through the Text helper function. DocumentWriter (which actually
extracts and tokenizes the field data doesn't care about the artificial
restriction in Field).
Randy
-Original Message-
From:
[
http://issues.apache.org/jira/browse/LUCENE-413?page=comments#action_12372615 ]
Dallan Quass commented on LUCENE-413:
-
Sorry for cluttering up the comments here. I wanted to add that the part of
the query exhibiting the error in the second case is a
JEDirectory delete issue
Key: LUCENE-535
URL: http://issues.apache.org/jira/browse/LUCENE-535
Project: Lucene - Java
Type: Bug
Versions: 1.9
Reporter: Aaron Donovan
The JEDirectory is incorrectly deleting files. Blocks are
[ http://issues.apache.org/jira/browse/LUCENE-536?page=all ]
Aaron Donovan updated LUCENE-536:
-
Attachment: File.java
JEStoreTest.java
I've attached a test that exercises the bug and a corrected File.java
JEDirectory delete issue
I've been working a bit with the spell checker. It does a pretty good
job when it comes to finding a smiple typo.
I was thinking it would be nice if I could turn heros light and
magic to did you mean: heroes of might and magic?.
My strategy is to combine Markov, A* and Levenstein.