Hey,
you don't actually need to store it, If you store the content of a
field you can later retrieve it like it used to be and display it may
be in a result list. If you have large content you can also store it
compressed (Field.Store.Compress). If you don't need the content in
any way just use Fi
Hello Simon,
I have resolved my problem, I added Store.YES and Index.TOKENIZED, and
it goes.
thank you another time.
thanks.
Simon Willnauer a écrit :
I just tried it out and it worked like expected:
RAMDirectory d = new RAMDirectory();
IndexWriter w = new IndexWriter(d,new WhitespaceA
I just tried it out and it worked like expected:
RAMDirectory d = new RAMDirectory();
IndexWriter w = new IndexWriter(d,new WhitespaceAnalyzer(),true);
Document doc = new Document();
doc.add(new Field("field","title",Field.Store.YES,Field.Index.TOKENIZED ));
doc.add(new Field("fie
The probl add(new Field( fieldName(), fieldValue, Field.Store,
Field.Index));
and I use the WhiteSpaceAnalyser, but my problem is can I index a field
with value as "title" it goes, and can I index with value as "2006" it
doesn't go.
Why, I don't know
thanks
Simon Willnauer a écrit :
could y
could you provide a bit more info on your index process?
(analyzer,Field, Store, Index)
regards simon
On 8/10/06, ould sid'ahmed <[EMAIL PROTECTED]> wrote:
Hello,
I don't know why it don't index the number values, I look with Luke
Lucene, I founded that values numerics didn't indexed.
can you
Hello,
I don't know why it don't index the number values, I look with Luke
Lucene, I founded that values numerics didn't indexed.
can you know what the problem?
thanks
Simon Willnauer a écrit :
Well your digits might be lost during analysis like Erik said. Check
out with luke whats in your in
Well your digits might be lost during analysis like Erik said. Check
out with luke whats in your index (Field.Store.Yes) and see if your
analyzer removes the digits. SimpleAnalyzer removes them but
StandartAnalyzer keeps the digits.
regards simon
On 8/9/06, ould sid'ahmed <[EMAIL PROTECTED]> wro
Simon Willnauer a écrit :
You should rather explain what you expect from indexing your number
not as string values.
best regards simon
On 8/9/06, ould sid'ahmed <[EMAIL PROTECTED]> wrote:
Erick Erickson a écrit :
> What analyzers are you using for both indexing and searching? Some
> analyzers
You should rather explain what you expect from indexing your number
not as string values.
best regards simon
On 8/9/06, ould sid'ahmed <[EMAIL PROTECTED]> wrote:
Erick Erickson a écrit :
> What analyzers are you using for both indexing and searching? Some
> analyzers
> strip out numbers and som
Erick Erickson a écrit :
What analyzers are you using for both indexing and searching? Some
analyzers
strip out numbers and some don't. I'd start with WhitespaceAnalyzer, and
index your fields UN_TOKENIZED and work up to the other analyzers and/or
tokenizations from there.
Under any circumstanc
What analyzers are you using for both indexing and searching? Some analyzers
strip out numbers and some don't. I'd start with WhitespaceAnalyzer, and
index your fields UN_TOKENIZED and work up to the other analyzers and/or
tokenizations from there.
Under any circumstances, you really, really, rea
Hello,
I don't arrive to get result from the field have a value numeric for
example "date=2005" or "title=900",
I have indexed the fields "date" with String value. I want know why?
Can you help me?
thanks.
-
To unsubscribe,
12 matches
Mail list logo