Hi all:
How do Lucene give each document an ID when the document is added
and How do we retrieve a document by document ID? appreciate your help!
--
David
David, please look at the Javadoc for IndexReader. I believe the API is
reader.document(int), where reader is an instance of IndexReader.
Otis
- Original Message
From: David <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Friday, January 12, 2007 3:10:42 AM
Subject: How to re
Can somebody, please let me know if it it possible to get the source
code for Lucene version 1.3 and other earlier versions. I need them for
research purpose.
Best Regards,
Kunal
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Hi Kunal,
http://svn.apache.org/viewvc/lucene/java/tags/ should have all the
past versions you could ever desire.
-Grant
On Jan 12, 2007, at 6:02 AM, Kunal Taneja wrote:
Can somebody, please let me know if it it possible to get the
source code for Lucene version 1.3 and other earlier ver
Hi Kunal,
You can get them from subversion repository. For example,
for Lucene 1.3:
$ svn co http://svn.apache.org/repos/asf/lucene/java/tags/lucene_1_3_final
See also:
http://wiki.apache.org/jakarta-lucene/SourceRepository
http://svn.apache.org/viewvc/lucene/java/tags/
regards,
Koji
-
Thanks a bunch, Grant and Koji
Best Regards,
Kunal
Grant Ingersoll wrote:
Hi Kunal,
http://svn.apache.org/viewvc/lucene/java/tags/ should have all the
past versions you could ever desire.
-Grant
On Jan 12, 2007, at 6:02 AM, Kunal Taneja wrote:
Can somebody, please let me know if it it po
Hi,
I have problem searching wildcards terms contains _ or -.
When I search for non-linear I see the query as title:"non linear" but
when I search for non-lin* I get the query as title:non-lin* and it does
not return any result as it interprets as single token with wildcard.
I have gone thro
Wildcard queries are not analyzed...they are only lowercased unless you
have changed that behavior.
- Mark
Supriya Kumar Shyamal wrote:
Hi,
I have problem searching wildcards terms contains _ or -.
When I search for non-linear I see the query as title:"non linear"
but when I search for non-
: This sounds troubling to me now :) I may need to clear up my
: understanding of this and rework the parser:
: "A | B | C ! D ! E" wold get parsed as allFields:a allFields:b
: (+allFields:c -allFields:d -allFields:e)
: This is because ! binds tighter than |...
: Sounds like I need to bone up on
: I will certainly start experimenting with this. For clarification
: though, you are telling me that the Lucene syntax query: 'Mark AND pig
: AND man' is different than the query: '(Mark AND pig) AND man', correct?
Ummm... because you are making all of the clauses required, the parens
*may* not
Analyzer analyzer = new StandardAnalyzer(new String[]{});
The analyzer used in both cases, would be this one in the code, above.
Does this mean i would have to create a new Analyzer and reindex the whole
lot?
Bearing in mind ofcourse that there is also a free text element also,
See this become
It won't do what I need. I may have something like:
"All-In-One is located in 92226-4446 and has an E-A-R"
I want it to be tokenized as follows:
all
one
located
92226
4446
E-A-R
Right now... it is tokenizing it as this:
all
one
located
92226-4446
E-A-R
-Original Message-
From: Eric
It won't do what I need. I may have something like:
"All-In-One is located in 92226-4446 and has an E-A-R"
I want it to be tokenized as follows:
all
one
located
92226
4446
E-A-R
Right now... it is tokenizing it as this:
all
one
located
92226-4446
E-A-R
Thats the type of information you
Sure, see PerFieldAnalyzerWrapper. It's designed to allow different
analyzers for different fields.
Erick
On 1/12/07, M A <[EMAIL PROTECTED]> wrote:
Analyzer analyzer = new StandardAnalyzer(new String[]{});
The analyzer used in both cases, would be this one in the code, above.
Does this mean
Figures...I don't even think removing those pieces from OR will
work...that will just skip both pieces because they will appear as pure
numbers. What you want is a bit tricky. I will think about it if someone
else doesn't chime in...it is difficult to recognize one token and then
return it as t
15 matches
Mail list logo