Hi,
I agree. I wrote a custom class and it actually works in the 1, 3, 2 order
below. I changed FieldInfos to non-final, but I think that's it.
Actually, my class doesn't do 1 yet. This used to work:
// unpack cfs
writer = new IndexWriter("/tmp/fnm", new SimpleAnalyzer(), fals
On 1/9/07, David <[EMAIL PROTECTED]> wrote:
Hi all:
How can I index float type term in Lucene so that we can search in a
range? I learned that it is possible to convert float to sortable string,
but I don't know how to do it.
It's easiest/fastest in binary. The IEEE floating point format i
On Jan 9, 2007, at 10:24 PM, David wrote:
Hi all:
can we add duplicate field in Lucene like the following:
Yup, no problem!
doc.add(new Field("author", "author1", Field.Store.YES,
Field.Index.UN_TOKENIZED));
doc.add(new Field("author", "author2", Field.Store.YES,
Field.Index.UN_TOKENIZED));
I have released a Technology preview of my Lucene query parser Qsol.
This is the first official release. The purpose of this release is to
gather feedback for a 1.0 release.
If you have an interest in using this parser please lend a hand in
testing it out and making suggestions.
A recap of the
Hi all:
can we add duplicate field in Lucene like the following:
doc.add(new Field("author", "author1", Field.Store.YES,
Field.Index.UN_TOKENIZED));
doc.add(new Field("author", "author2", Field.Store.YES,
Field.Index.UN_TOKENIZED));
How will Lucene act?
if I want add two authors to the index ,
Hi all:
How can I index float type term in Lucene so that we can search in a
range? I learned that it is possible to convert float to sortable string,
but I don't know how to do it.
--
David
Hi all,
I have come across what I think is a curious but insidious bug with the
java lucene hit highlighter. I updated to the latest version of lucene
and the highlighter because I first found this problem in the lucene
v1.4 version, unfortunately its still there in v2.0.0 versions.
I am ind
On 1/9/07, Otis Gospodnetic <[EMAIL PROTECTED]> wrote:
Couldn't one convert a non NO_NORMS field to a genuine NO_NORMS field by:
1. expanding an index to a multi-file index (if the index was a .cfs one)
2. removing the appropriate .fN file from the index directory
3. switching that omitNorms bit
Hi,
Got this thought while eating noodles yesterday...
Couldn't one convert a non NO_NORMS field to a genuine NO_NORMS field by:
1. expanding an index to a multi-file index (if the index was a .cfs one)
2. removing the appropriate .fN file from the index directory
3. switching that omitNorms bit i
On 1/9/07, Doron Cohen <[EMAIL PROTECTED]> wrote:
Otis Gospodnetic <[EMAIL PROTECTED]> wrote on 08/01/2007 23:36:46:
> Also, looking at http://lucene.apache.org/java/docs/fileformats.html
> I don't even see any mention of .sN files.
I am almost sure I added that info to fileformats (issue 756).
Otis Gospodnetic <[EMAIL PROTECTED]> wrote on 08/01/2007 23:36:46:
> Also, looking at http://lucene.apache.org/java/docs/fileformats.html
> I don't even see any mention of .sN files.
I am almost sure I added that info to fileformats (issue 756).
I'll check what's been with that.
On 1/9/07, Otis Gospodnetic <[EMAIL PROTECTED]> wrote:
After a little digging/debugging, it seems to me that what I am seeing is
actually normal and expected behaviour. Morever, it seems that once a Field is
indexed without it being NO_NORMS field, it is not really possible to make it a
trull
But do be aware that, as one should expect, you can get a null result from
doc.get("a") if field "a" isn't in the document. You can use
doc.getFieldsto test ahead of the fetch if you need to.
Erick
On 1/9/07, Otis Gospodnetic <[EMAIL PROTECTED]> wrote:
Yes, documents can have different fields.
Hi,
After a little digging/debugging, it seems to me that what I am seeing is
actually normal and expected behaviour. Morever, it seems that once a Field is
indexed without it being NO_NORMS field, it is not really possible to make it a
trully NO_NORMS field. From what I can tell, one of the
Yes, documents can have different fields. One document can have fields A and
B, and another document can have fields C and D.
Otis
- Original Message
From: David <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Tuesday, January 9, 2007 5:55:28 AM
Subject: can Lucene index diff
Hi all:
I know that we can use doc.add(attr, value) to add attributes to the
document, can we add different amount of attributes to one document?
for example, can this pseudo code runnable?
public static Document Document(MyObject o)
{
Document doc = new Document();
for(i=0; i
16 matches
Mail list logo