How to retrieve the document by document ID?

2007-01-12 Thread David
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

Re: How to retrieve the document by document ID?

2007-01-12 Thread Otis Gospodnetic
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

Lucene 1.3

2007-01-12 Thread Kunal Taneja
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

Re: Lucene 1.3

2007-01-12 Thread Grant Ingersoll
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

RE: Lucene 1.3

2007-01-12 Thread Koji Sekiguchi
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 -

Re: Lucene 1.3

2007-01-12 Thread Kunal Taneja
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

wilcard search with terms contains _ or -

2007-01-12 Thread Supriya Kumar Shyamal
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

Re: wilcard search with terms contains _ or -

2007-01-12 Thread Mark Miller
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-

Re: Technology Preview of new Lucene QueryParser

2007-01-12 Thread Mark Miller
: 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

Re: Technology Preview of new Lucene QueryParser

2007-01-12 Thread Chris Hostetter
: 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

Re: Excluding partial match for query result

2007-01-12 Thread M A
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

RE: Modifying StandardAnalyzer

2007-01-12 Thread Van Nguyen
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

Re: Modifying StandardAnalyzer

2007-01-12 Thread Mark Miller
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

Re: Excluding partial match for query result

2007-01-12 Thread Erick Erickson
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

Re: Modifying StandardAnalyzer

2007-01-12 Thread Mark Miller
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