DateTools.set-

2006-08-23 Thread Paul Snyder
I have a question about DateTools conversions. I am having trouble with results of trying to store a date truncated to DAY resolution. Here is an example. OK: DateTools.stringToDate(DateTools.dateToString(new Da

Re: Tomcat Simple Example

2006-08-23 Thread Hasan Diwan
On 22/08/06, Mag Gam <[EMAIL PROTECTED]> wrote: Does anyone have a simple Tomcat search/result example? I have 4 text files, i would like to index. There's a demonstration war file included with lucene. -- Cheers, Hasan Diwan <[EMAIL PROTECTED]> ---

Re: How to combine multiple fields to a single field for indexing

2006-08-23 Thread KEGan
Erik, What is generally the reason for indexing both individual fields, and the general-purpose "content" field ? Also, if we search in the general-purpose "content" field, wouldnt this problem occurs. Let say we have 2 fields and the following values: name : John Smith food : subway sandwich

Re: Query parser.parse (line);

2006-08-23 Thread Mag Gam
Very good advice! With the previous code you gave me, I was able to get everything for 2.0! good call! On 8/23/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: On Aug 23, 2006, at 8:45 PM, Mag Gam wrote: > I am looking at this page > http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.

Re: Query parser.parse (line);

2006-08-23 Thread Erik Hatcher
On Aug 23, 2006, at 8:45 PM, Mag Gam wrote: I am looking at this page http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.html Any chance there is a new version for 2.0? Or are there any 2.0 examples (other than the stock example)? No, that article has not been updated for the 2.

Re: How to combine multiple fields to a single field for indexing

2006-08-23 Thread Erik Hatcher
On Aug 23, 2006, at 11:36 AM, Suba Suresh wrote: In "Lucene In Action" book it says it is better practice to combine two fields into one field and index it than use the MultiFieldQueryParser. Do I initially index both the fields and then index them again together? When I index them together

Re: Query parser.parse (line);

2006-08-23 Thread Mag Gam
Hi Erik, thanks for the quick reply I am looking at this page http://today.java.net/pub/a/today/2003/11/07/QueryParserRules.html Any chance there is a new version for 2.0? Or are there any 2.0 examples (other than the stock example)? On 8/23/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: On A

Re: Query parser.parse (line);

2006-08-23 Thread Erik Hatcher
On Aug 23, 2006, at 7:24 PM, Mag Gam wrote: I am trying to do a Query parse line in a doGET method (J2EE). I keep getting this type of message; unreported exception org.apache.lucene.queryParser.ParseException; must be caught or declared to be thrown Anyone have an example of a Class being

Query parser.parse (line);

2006-08-23 Thread Mag Gam
Hi All, I am trying to do a Query parse line in a doGET method (J2EE). I keep getting this type of message; unreported exception org.apache.lucene.queryParser.ParseException; must be caught or declared to be thrown Anyone have an example of a Class being thrown an exception? I would kindly app

Re: Tomcat Simple Example

2006-08-23 Thread Mag Gam
Thanks for the response Erik! You make a good point. I have the 'Lucene in Action' book, and it has some good ways of doing things...its at work now (I am away for 3 weeks), thats the only bad thing :-( On 8/23/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: On Aug 23, 2006, at 5:18 PM, Mag Gam

Re: Tomcat Simple Example

2006-08-23 Thread Erik Hatcher
On Aug 23, 2006, at 5:18 PM, Mag Gam wrote: So, when working with Tomcat, for a simple Index + Search, it is recommend to use JSP over servlets? any advice? No such recommendation would ever officially come from the Lucene community. Lucene is entirely independent of how search results g

Re: Test new query parser?

2006-08-23 Thread Robert Watkins
Mark -- Don't lose hope! We are migrating from Verity to Lucene, and I know for a fact that we will have to support the kind of complex queries you talk about; maybe not /quite/ as complex as your magnificent: cop | fowl & (fowl | priest & man) ! helicopter ~8 (hillary | tom) but certainly mo

Re: Tomcat Simple Example

2006-08-23 Thread Mag Gam
Thanks! So, when working with Tomcat, for a simple Index + Search, it is recommend to use JSP over servlets? any advice? On 8/23/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: : > Does anyone have a simple Tomcat search/result example? : > I have 4 text files, : > i would like to index.

Re: Test new query parser?

2006-08-23 Thread Mark Miller
You are not kidding. I keep finding this tougher and tougher. Originally my method worked for most simple queries, but not all. I improved it to cover some more ground, allowing some modestly complex queries, but now even that improvement seems woefully inadequate for solving the general case.

Re: Scoring Technique based on Relevance Feeback & other Parameters

2006-08-23 Thread Chris Hostetter
: package. By implementing new type of tuple (Query,Weight,Scorer) I can : easily implement new Scoring technique. Unfortunatly Lucene index shows that : it stores only TF / Position vectors for each term within document. : I am interested in investigating new scoring technique where I w

RE: Scoring Technique based on Relevance Feeback & other Parameters

2006-08-23 Thread Dejan Nenov
Indeed - you bring up interesting questions. You may want to take a look at NUTCH first, however - I am not sure if they have done some of the Google-like ranking you mention. However - collaborative relevance enhancement, based on user feedback, would be a nice Web-2.0-ish feature to bake into th

How to combine multiple fields to a single field for indexing

2006-08-23 Thread Suba Suresh
In "Lucene In Action" book it says it is better practice to combine two fields into one field and index it than use the MultiFieldQueryParser. Do I initially index both the fields and then index them again together? When I index them together do I index the fieldnames or values? Can someone giv

Search and Hits

2006-08-23 Thread Suba Suresh
I have this application where I indexed different file formats and used "phraseQuery" on the "body" of the documents to do the search. Now I have added email archives to the index. I have to use "TermQuery/MultiFieldQuery" to search the emails. For a user entered query I have to search both th

RE: Scoring Technique based on Relevance Feeback & other Parameters

2006-08-23 Thread Russell M. Allen
I have a similar interest in specifying a custom scoring strategy. I previously posted about it under the subject "Scoring a document (count?)" on 7/27/06. In brief, I want a documents score to be a count of term matches. This is nearly identical to a SQL count() functionality. If you are able

Re: Scoring Technique based on Relevance Feeback & other Parameters

2006-08-23 Thread Grant Ingersoll
On Aug 23, 2006, at 8:30 AM, sachin wrote: Hello Great/smart guys This is my first question for this group as I started working on the Lucene last month. Lucene provide the scoring of documents based on TF-IDF vector analysis. Lucene also provides the Scorer and Weight i

Scoring Technique based on Relevance Feeback & other Parameters

2006-08-23 Thread sachin
Hello Great/smart guys    This is my first question for this group as I started working on the Lucene last month.       Lucene provide the scoring of documents based on TF-IDF vector analysis. Lucene also provides the Scorer and Weight inside the Search package. By implementin

Re: Change index structure

2006-08-23 Thread Erik Hatcher
On Aug 23, 2006, at 6:22 AM, WATHELET Thomas wrote: If I want to add a new field for exemple into an existing index Documents in Lucene are heterogeneous, with fields being defined per document not per index. You can introduce a new field on a new document at any time. There is currently

Re: Problem updating index while reader is open

2006-08-23 Thread Michael McCandless
If I try to add documents to an index while a reader is open I get en error message saying "Cannot delete C:\myindex\_3n.f0". I suspect that this is due to the fact that the windows fs won't allow deletion of a file when there is a filehandler connected to it. The solution I have at the momen

Problem updating index while reader is open

2006-08-23 Thread Björn Ekengren
If I try to add documents to an index while a reader is open I get en error message saying "Cannot delete C:\myindex\_3n.f0". I suspect that this is due to the fact that the windows fs won't allow deletion of a file when there is a filehandler connected to it. The solution I have at the moment i

Re: Solr Cache

2006-08-23 Thread Mark Miller
Thanks Hoss. I apologize for being slightly off topic. Instead of using Solr, I am trying to steal from it, and so Lucene was still mostly what was on my mind :) I posted too soon as well because I finally found the wiki page on caching at Solr's site. I have just implemented the "warm a ne

RE: Change index structure

2006-08-23 Thread WATHELET Thomas
If I want to add a new field for exemple into an existing index -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: 23 August 2006 11:57 To: java-user@lucene.apache.org Subject: Re: Change index structure On Aug 23, 2006, at 3:50 AM, WATHELET Thomas wrote: > Is it pos

Re: Change index structure

2006-08-23 Thread Karel Tejnora
Yes it is possible. Only UNSTORED fields became UNSTORED again and You cannot change TERM in them. If you have SQL db I have neat code to doing this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Change index structure

2006-08-23 Thread Erik Hatcher
On Aug 23, 2006, at 3:50 AM, WATHELET Thomas wrote: Is it possible to change index structure in an existing index. If yes how to proceed. Please elaborate on what you mean by "index structure". Lucene supports incremental indexing, if that is what you mean - so you can always add/delete d

Re: correct classpath

2006-08-23 Thread Erik Hatcher
On Aug 22, 2006, at 6:23 PM, Mag Gam wrote: Hi All, I am getting into Java + Lucene. To compile a Lucene program CreateIndex.java public class CreateIndex { // usage: CreateIndex index-directory public static void main(String[] args) throws Exception { String indexPath = args[0]; Inde

Re: Solr Cache

2006-08-23 Thread Chris Hostetter
: It looks like Solr does not use a simple cached queryfilter as a query : cache. Why is this? Is a cache queryfilter not efficient enough? Is this : alternate method just so you can easily load the cache from an old : Searcher to a new Searcher? Any info appreciated. This would probably be bette

Re: apachecon

2006-08-23 Thread Chris Hostetter
: program at ApacheCon 2006. The Solr talk looks interesting. Why thank you :) : I was wondering if there have been any other self/semi-organized things : around Lucene in the past, like a BOF? This will be my first ApacheCon, so i can't speak to what's happened in the past -- but I'm certainly

Re: Update index

2006-08-23 Thread Martin Braun
Hi Thomas, > Is it possible to update fields in an existing index. > If yes how to proceed. > I think you can only delete a document and then reindex the updated document: public static int delTitle(String ID) { try { return writer.deleteDocuments(new Term("ID",ID))

Re: Tomcat Simple Example

2006-08-23 Thread Chris Hostetter
: > Does anyone have a simple Tomcat search/result example? : > I have 4 text files, : > i would like to index. take a look at the geting started guide, and the demo WAR that comes with the Lucene distribution... http://lucene.apache.org/java/docs/gettingstarted.html -Hoss

Change index structure

2006-08-23 Thread WATHELET Thomas
Is it possible to change index structure in an existing index. If yes how to proceed.

Update index

2006-08-23 Thread WATHELET Thomas
Is it possible to update fields in an existing index. If yes how to proceed.

Re: Tomcat Simple Example

2006-08-23 Thread Michael Wechner
Mag Gam wrote: Hi All, Does anyone have a simple Tomcat search/result example? you mean like the war file of Nutch? Michi I have 4 text files, i would like to index. Thanks -- Michael Wechner Wyona - Open Source Content Management -Apache Lenya http://www.wyona.com