Re: lucene web demo problems

2003-11-24 Thread Holger Klawitter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 36 in the jsp file: /web/results.jsp Generated servlet error: [javac] Compiling 1 source file [javac]

StandardAnalyzer defaults to OR on query

2003-11-24 Thread Dror Matalon
Hi, From http://jakarta.apache.org/lucene/docs/queryparsersyntax.html The OR operator is the default conjunction operator. This means that if there is no Boolean operator between two terms, the OR operator is used. So foo bar is equivalent to foo OR bar and will

RE: Lucene refresh index function (incremental indexing).

2003-11-24 Thread Tun Lin
Can you elaborate on you don't compile directory using Lucene? These are the steps I took: 1) I compile all the files in a particular directory using the command: java org.apache.lucene.demo.IndexHTML -create -index c:\\index .. , putting all the indexed files in c:\\index. 2) Everytime, I

Re: Lucene refresh index function (incremental indexing).

2003-11-24 Thread Victor Hadianto
1) I compile all the files in a particular directory using the command: java org.apache.lucene.demo.IndexHTML -create -index c:\\index .. , putting all the indexed files in c:\\index. 2) Everytime, I added an additional file in that directory. I need to reindex/recompile that directory to

Re: StandardAnalyzer defaults to OR on query

2003-11-24 Thread Victor Hadianto
There is an attribute in QueryParser that will let you set AND as the default operator. victor - Original Message - From: Dror Matalon [EMAIL PROTECTED] To: Lucene Users List [EMAIL PROTECTED] Sent: Monday, November 24, 2003 7:33 PM Subject: StandardAnalyzer defaults to OR on query

Fields with same name but different boosts

2003-11-24 Thread Andrzej Bialecki
Hello, I have the following problem: in my application I'm trying to store set of keywords and their weights. Since the number of keywords is variable (and can be as high as 40) I decided to use a single field to store it. In other words, I want to use a single field with multiple values to

Re: Lucene version 1.3.

2003-11-24 Thread Otis Gospodnetic
Sorry, no firm date. However, 1.3 RC2 is pretty solid, so I suggest you just use that until 1.3 final is out. Otis --- Tun Lin [EMAIL PROTECTED] wrote: Hi, Anyone knows when the full version of Lucene version 1.3 will be released? Please advise. Thanks.

RE: Dates and others

2003-11-24 Thread Dion Almaer
Erik - Spot on. I should have listened to your advice from the talk and just used MMDD :) Everything works nicely now that I do the conversion. Thanks for the great ideas. Dion -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2003

Similarity class

2003-11-24 Thread Ralf B
Hi, I am a very beginner of Lucene und started to look into some articles and the API documentation. I know the theories behind Information Retrieval and want to find out about Lucene. I think it is the best Java API IR package available nowadays. One question: The similarity class is abstract.

Re: Similarity class

2003-11-24 Thread Otis Gospodnetic
It sounds like you missed this: http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/DefaultSimilarity.html You can write your own implementations and use it during indexing and searching. Otis --- Ralf B [EMAIL PROTECTED] wrote: Hi, I am a very beginner of Lucene und

1.2 javadoc

2003-11-24 Thread DMGoodstein
Is there a url that will take me to the javadocs for Lucene 1.2, rather than 1.3-rc2? thanks, --David - Original Message - From: Dion Almaer [EMAIL PROTECTED] Date: Monday, November 24, 2003 6:07 am Subject: RE: Dates and others Erik - Spot on. I should have listened to your advice

Re: 1.2 javadoc

2003-11-24 Thread Erik Hatcher
On Monday, November 24, 2003, at 12:57 PM, [EMAIL PROTECTED] wrote: Is there a url that will take me to the javadocs for Lucene 1.2, rather than 1.3-rc2? No, but the 1.2 binary distribution ships with the javadocs, I believe. And, of course, they would be easy to generate from the 1.2 source

Re: Similarity class

2003-11-24 Thread Erik Hatcher
On Monday, November 24, 2003, at 12:22 PM, Ralf B wrote: One question: The similarity class is abstract. Are there default implementations like in other parts of this API (Analysers for example) available and how can I use it i.e. to calculate weights? Are there some default implementations

Score

2003-11-24 Thread Pleasant, Tracy
Hi, I'm using the Multi Field Search to search all the fields of my documents during the search. When it returns results the scores are numerically low - .06, .17, etc. I would think if I searched for Dog and there was a doc with Dog in the title and several times in the contents of a document

Re: StandardAnalyzer defaults to OR on query

2003-11-24 Thread Dror Matalon
I see setOperator(DEFAULT_OPERATOR_AND); Maybe the docs should be changed not to say The only method that clients should need to call is parse(). Thanks for the pointer, Dror On Mon, Nov 24, 2003 at 08:14:12PM +1100, Victor Hadianto wrote: There is an attribute in QueryParser that will let

Re: Dates and others

2003-11-24 Thread Ype Kingma
Erik, On Sunday 23 November 2003 12:51, Erik Hatcher wrote: On Saturday, November 22, 2003, at 06:33 PM, Dion Almaer wrote: 3. I have some fields suck as title, owner, etc as well as the content blob which I index and use as the default search field. Is there an easy way to extend the

RE: Lucene version 1.3.

2003-11-24 Thread Scott Smith
If you had to be production in January, would you be using 1.3RC2 or 1.2? -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 4:03 AM To: Lucene Users List; [EMAIL PROTECTED] Subject: Re: Lucene version 1.3. Sorry, no firm date. However,

Re: Score

2003-11-24 Thread Gerret Apelt
Tracey -- it would help if you could give more detail on the types of documents, fields and analyzers you're using. Also what do you mean by Multi Field Search? I presume you're using the MultiFieldQueryParser to have query terms in a user-submitted query be searched for in each field in your

Re: Dash Confusion in QueryParser - Bug? Feature?

2003-11-24 Thread Jianshuo Niu
Dear Victor: I applied the changed based on the patch. Also, I got t-shirt in the search query. I rebuilt the search index using the modified lucene-1.3-rc2.jar and did the search by the modified jar as well. The search field was specified as indexed, tokenized and stored. When I do the

Re: Lucene version 1.3.

2003-11-24 Thread Francesco Bellomi
I'm using 1.3RC2 in production right now. Francesco Scott Smith [EMAIL PROTECTED] wrote: If you had to be production in January, would you be using 1.3RC2 or 1.2? - Francesco Bellomi Use truth to show illusion, and illusion to show truth.

Re: Lucene refresh index function (incremental indexing).

2003-11-24 Thread Doug Cutting
Tun Lin wrote: These are the steps I took: 1) I compile all the files in a particular directory using the command: java org.apache.lucene.demo.IndexHTML -create -index c:\\index .. , putting all the indexed files in c:\\index. 2) Everytime, I added an additional file in that directory. I need

Re: Fields with same name but different boosts

2003-11-24 Thread Doug Cutting
Andrzej Bialecki wrote: Now, I'm wondering how do I encode the weight of keywords... If I do the following: Field f = Field.Keyword(kw, value1); f.setBoost(10.0); doc.add(f); f = Field.Keyword(kw, value2); f.setBoost(20.0); doc.add(f); Now the question is: what is the boost value for the fields

permissions or lock problem?

2003-11-24 Thread DMGoodstein
I'm having difficulty creating an IndexSearcher from an FSDirectory in 1.3-rc2. The code is as follows (log.writeToLog is a convenience method): log.writeToLog(Log.DEBUG,directory path =+hitPath); File f = new File(hitPath); log.writeToLog(Log.DEBUG,file exists = +String.valueOf(f.exists()));

Re: permissions or lock problem?

2003-11-24 Thread DMGoodstein
resolved...it was the new feature that writes locks to java.io.tmpdir, which in my servlet engine was interpreted as $CATALINA_HOME/temp, which didn't exist. --D - Original Message - From: [EMAIL PROTECTED] Date: Monday, November 24, 2003 1:30 pm Subject: permissions or lock problem?

Re: Dash Confusion in QueryParser - Bug? Feature?

2003-11-24 Thread Victor Hadianto
Odd ... This is working fine for us. You have to use the patched Lucene to both build and do the search and to make sure to use the same analyser. Failing that, email me the code that you use to build/search the index and I'll have a look. HTH, victor - Original Message - From:

Re: Dash Confusion in QueryParser - Bug? Feature?

2003-11-24 Thread Jianshuo Niu
Dear Victor: Finally, I got search results. I made a mistake to create index files. Thanks a lot Jianshuo On Tue, 25 Nov 2003 09:24:23 +1100, Victor Hadianto wrote: Odd ... This is working fine for us. You have to use the patched Lucene to both build and do the search and to make sure

RE: Lucene version 1.3.

2003-11-24 Thread Tun Lin
I am now using 1.3RC2. -Original Message- From: Scott Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 4:04 AM To: 'Lucene Users List'; '[EMAIL PROTECTED]' Subject: RE: Lucene version 1.3. If you had to be production in January, would you be using 1.3RC2 or 1.2?

RE: Lucene refresh index function (incremental indexing).

2003-11-24 Thread Tun Lin
Will the final version 1.3 include an application that does the incremental updates automatically? -Original Message- From: Doug Cutting [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2003 5:01 AM To: Lucene Users List Subject: Re: Lucene refresh index function (incremental

RE: Lucene refresh index function (incremental indexing).

2003-11-24 Thread Tun Lin
Does it support indexing the contents of pdf files? I have found one project called PDFBox that can be integrated with Lucene to search inside of the pdf files. Currently, Lucene can only search for the pdf filename. I tried with PDFBox and I got the following message when I typed the command: