Re: Generating phrase queries from term queries

2006-01-10 Thread Paul Elschot
On Wednesday 11 January 2006 00:09, Eric Jain wrote: > Is there an efficient way to determine if two or more terms frequently > appear next to each other sequence? For a query like: > > a b c > > one or more of the following suggestions could be generated: > > "a b c" > "a b" c > a "b c" > > I

How to track database changes at run time to update index in Lucene ?

2006-01-10 Thread Vikas Khengare
Hi Friend... I have two questions for you I am doing indexing using Lucene. I am taking data from database But for updation in index there is problem. How can I come to know that a row or a single data cell is get changed from row ? How can I index only

Re: How to track database changes at run time to update index in Lucene ?

2006-01-10 Thread Dick de Jong
For changes in the database, you can: - use the server side business object that also does the update of the BO in the database, and which currently does also the indexing in lucene - use the front-end (browser I presume if I see AJAX, which is nothing more than XmlHttp), but would not be my prefer

How to track database changes at run time to update index in Lucene ?

2006-01-10 Thread Vikas Khengare
Hi Friend... I have two questions for you I am doing indexing using Lucene. I am taking data from database But for updation in index there is problem. How can I come to know that a row or a single data cell is get changed from row ? How can I index only

Re: Lucene and Nutch

2006-01-10 Thread Chris Hostetter
: to index remote HTML files. Can I use Nutch to crawl for the remote HTML : files and use the index for the Lucene code I have already written? Or do : I have to redo the whole thing using the Nutch API? I am using boosting : during the indexing. I hope Nutch can boost fields, too. Any help

RE: Lucene and Nutch

2006-01-10 Thread Koji Sekiguchi
FYI: open source web crawler: http://java-source.net/open-source/crawlers Thanks, Koji - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Lucene and Nutch

2006-01-10 Thread Daniel . Clark
I am using lucene to index local HTML files. The requirement just changed to index remote HTML files. Can I use Nutch to crawl for the remote HTML files and use the index for the Lucene code I have already written? Or do I have to redo the whole thing using the Nutch API? I am using boosting d

Generating phrase queries from term queries

2006-01-10 Thread Eric Jain
Is there an efficient way to determine if two or more terms frequently appear next to each other sequence? For a query like: a b c one or more of the following suggestions could be generated: "a b c" "a b" c a "b c" I could of course just run a search with all possible combinations, but perh

Re: Scoring by number of terms in field

2006-01-10 Thread Eric Jain
Paul Elschot wrote: In case you prefer to use the maximum score over the clauses you can use the DisjunctionMaxQuery from the development version. Yes, that may help! I'll need to have a look... - To unsubscribe, e-mail: [EMAI

Re: Default searching across all fields?

2006-01-10 Thread tlittell
Ohh, I see now. That's perfect. I hadn't realized that was in the API. thanks... > I think you want to use the MultiFieldQueryParser instead of the > QueryParser. > > [EMAIL PROTECTED] wrote: > >>Is there a way to make the default search to go across all fields? >> >>For example, suppose I have

Re: Default searching across all fields?

2006-01-10 Thread Grant Ingersoll
I think you want to use the MultiFieldQueryParser instead of the QueryParser. [EMAIL PROTECTED] wrote: Is there a way to make the default search to go across all fields? For example, suppose I have two fields "title" & "content", and we have the following: String queryText = "dogs cats"; Que

Default searching across all fields?

2006-01-10 Thread tlittell
Is there a way to make the default search to go across all fields? For example, suppose I have two fields "title" & "content", and we have the following: String queryText = "dogs cats"; QueryParser qParser = ...; Query query = qParser.parse(queryText); // uses DFLT field. But what if you want

Re: Scoring by number of terms in field

2006-01-10 Thread Paul Elschot
On Tuesday 10 January 2006 07:32, Eric Jain wrote: > Paul Elschot wrote: > >>For example, a query for "europe" should rank: > >> > >>1. title:"Europe" > >>2. title:"History of Europe" > >>3. title:"Travel in Europe, Middle East and Africa" > >>4. subtitle:"Fairy Tales from Europe" > > > > Perhaps

AW: Scoring by number of terms in field

2006-01-10 Thread Stefan Gusenbauer
I think this will work because in number 1 europe is the only word in the title which means it has a higher weight than the word Europe in number 2. In number 2 there are more words around Europe and so on with number 3. As I can remember the scoring algorithm should exactly reproduce this result

RE: Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-10 Thread Koji Sekiguchi
Hi Dick, I agree with you. Now I cannot understand why your original code didn't work. If you find the answer, please let me know! regrads, Koji > -Original Message- > From: Dick de Jong [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 10, 2006 6:41 PM > To: java-user@lucene.apache.o

Re: Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-10 Thread Dick de Jong
Hi Koji, I might not agree with you ... I did the following: I create new function which invokes FSDirectory.getDirectory(dir,true) twice . The result I compare (fs1==fs2). In my situation the (fs1==fs2) = true. So even in my situation, i have two references to the same Directory object. If I loo

RE: Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-10 Thread Koji Sekiguchi
Hi Dick, > I only see one difference in the constructor of the IndexWriter class: > "closeDir" is 'true' in my scenario and 'false' in your scenario. What is > reason for this difference? And if there is a valid reason, it might be > useful to add this to the javaDoc of the IndexWriter class. The

Re: Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-10 Thread Dick de Jong
Hi Koji, Thanks for your help, would not have found that soon ... You are right, if I apply your code, the IOException comes. I only see one difference in the constructor of the IndexWriter class: "closeDir" is 'true' in my scenario and 'false' in your scenario. What is reason for this difference