RE: Updating index if there is a database changes

2006-05-03 Thread Kiran Joisher
Thanks Stephen, This was really helpful. Cheers, --Kiran -Original Message- From: Stephen Gray [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:11 AM To: java-user@lucene.apache.org Subject: Re: Updating index if there is a database changes Hi Kirin, Once you've updated an

Controlling the number of segments

2006-05-03 Thread johnhara
Hi. When I add new documents to my index, I sometimes end up with a larger number of segments than i theoretically should be able to. I use all the default settings. If I have understood this right I should never experience more than nine segments in my index when the mergeFactor is 10. I would

How to realize Sql LIKE?

2006-05-03 Thread JustineHMS
Hi All, I m new to Lucene, Just wondering if there is a way to realize sql 'Like' function in Lucene as following: Select * from user_table where username like '%abc%' I have checked with wildCardQuery, but it can not start with a '%'. What about RegexQuery? How to use it? Thank you very muc

Re: Updating index if there is a database changes

2006-05-03 Thread Stephen Gray
Hi Kirin, Once you've updated an index using IndexWriter or IndexReader you just need to close and re-open your IndexSearcher so that searching includes the changes. There is a great library callled LuceIndexAccessor at the link below that manages this for you. It creates an IndexReader/Writer

Re: max_score(multi_valued_field) function?

2006-05-03 Thread Chris Hostetter
: > sub queries your self, and there's no easy way to make a query that : > only searches the first "chunk" of terms from a field. : : I don't understand what you mean with "first 'chunk' of terms from a In your specific case, i was refering to the first title of many multiple titles if you *don't

Re: using search instead of explain

2006-05-03 Thread Chris Hostetter
: Now we want to use Search.search(Query, HitCollection). : HitCollection adds the document to a BitSet as soon as the score is non-zero. : : Is there any relation between the value of the explanation and the score? Generally speaking, calling Explain is suppose to return a detailed explanation o

Re: max_score(multi_valued_field) function?

2006-05-03 Thread Günther Starnberger
On Tue, May 02, 2006 at 01:57:46PM -0700, Chris Hostetter wrote: > As far as I can figure, your best bet really is to use a seperate > field for each title -- but instead of combining the queries into a > BooleanQuery, use a DisjunctionMaxQuery with a tiebreaker value of > 0.0f ... the whole purpo

using search instead of explain

2006-05-03 Thread Martin Kobele
Hi, at the moment we match a query with a document with explain. We consider the document as matched if the Explanation.getValue() is above a certain value (> 0.001) Now we want to use Search.search(Query, HitCollection). HitCollection adds the document to a BitSet as soon as the score is non-

Problem with lucene 1.9.1

2006-05-03 Thread Rodrigo Marcuschi
Hello, I am having problems using lucene 1.9.1. I was using 1.4.3 successfully, and tried upgrading to 1.9.1. As I changed my source code so I would no longer be invocating deprecated methods, the application no longer worked properly, i.e. the IndexModifier was no longer storing documents. He

RE: Optimize process does't care the maxMergeDocs value?

2006-05-03 Thread Koji Sekiguchi
AFAIK optimize() will merge existing segments into single segment, regardless of the value of maxMergeDocs. Koji SEKIGUCHI, Koji RONDHUIT Co.,Ltd. 9F AIG Bldg 1-1-3 Marunouchi Chiyoda-ku, Tokyo 100-0005 TEL 03-5288-5927 FAX 03-5288-5353 http://www.rondhuit

Re: Wildcard with Words Ending in 'e'

2006-05-03 Thread Chris Hostetter
I'm going to take a shot in the dark and guess that the field in question is analyzed using some form of Stemming which strips off trailing "e" characters (Porter Stemmer seems to do this). In the past, there was a bug in the way WildcardQuery works, so that the metacharacter "?" matches 0 or 1 c

Re: ArrayIndexOutOfBoundsException w/ ImageSearcher

2006-05-03 Thread Michael Dodson
I think I've fixed my own problem. I was using 1.4.3 in my code and the index was using 1.9.1. I updated and no longer get the error. Is this consistent with other people's experience though? I want to make sure this was actually the problem so the error doesn't resurface later. Thank

Re: internal Searching behavior or how to get a hit?

2006-05-03 Thread Miles Barr
On Wednesday 03 May 2006 14:56, Mathias Keilbach wrote: > I have a question concerning the interal searching behavior of lucene. How > does lucene get a hit. If I search for the a term, will each index document > be checked for this term or is there an internal relation between terms and > lucene d

Optimize process does't care the maxMergeDocs value?

2006-05-03 Thread he ivan
optimize the index will merge existing segments into a single one;does the final segment limit by the maxMergeDocs value also?

internal Searching behavior or how to get a hit?

2006-05-03 Thread Mathias Keilbach
Hi! I have a question concerning the interal searching behavior of lucene. How does lucene get a hit. If I search for the a term, will each index document be checked for this term or is there an internal relation between terms and lucene documents? Thanks for any advice. Matt

Wildcard with Words Ending in 'e'

2006-05-03 Thread Gordon Rogers
Hi I'm currently upgrading our version of intraLibrary from 1.3 to 1.9.1 (about time!) and have come across a failure in one of our wildcard query unit tests. Previously searching for the phrase peopl? would return results and now it doesn't. Further investigation has found that for any words I

Re: ParseException: Too many boolean clauses

2006-05-03 Thread Erick Erickson
This is a well-known Lucene issue, having to do with the way Lucene expands queries with ranges, etc. There is a thread in this archive titled "I just don't get wildcards at all" that will be very helpful. See especially Chris Hostetter's reply to some of my questions. The short form is that I *t

Re: ParseException: Too many boolean clauses

2006-05-03 Thread RamPrasad Suswaram
Hi, The code needs a minor change. Replace queryParser = new QueryParser("searchData",new StandardAnalyzer()); with queryParser = new QueryParser("desc",new StandardAnalyzer()); regards, Ram Prasad. > - Original Message - > From: "RamPrasad Suswaram" <[EMAIL PROTECTED]> > To: java-u

ParseException: Too many boolean clauses

2006-05-03 Thread RamPrasad Suswaram
Hi, I am new to Lucene & am using Lucene 1.9.1. Frequently I get a ParseException due to "Too many boolean clauses". The lucene documents that I have created have three fields "userID", "desc" and "codes". I need to find the information pertaing a set of users whose description contains a given

Re: Updating index if there is a database changes

2006-05-03 Thread Chris Lu
My approach is to select documents ordered by updated_date desc And only process documents newer than the ones already in the index. Chris Lu Full-Text Lucene Search for Any Databases/Applications http://www.dbsight.net On 5/3/06, Kiran Joisher <[EMAIL PROTE

Updating index if there is a database changes

2006-05-03 Thread Kiran Joisher
Hi all, I m working on a project where I will use lucene to make a search engine on a database. I am new to lucene. I wrote a test program which indexes a table and searches the same.. but now I m stuck on how to update the index in case a database change occurs.. I need some help on this topic...