Does Optimize preserve index order?

2006-03-24 Thread chan kang
Hi, I've been trying to search and show the results in a sorted order by using search(query, sort). However, the sorting seems to take too long when the index size becomes large (currently 7GB). So,,, I thought it would be nice if the index were pre-sorted... What I want to do is to show the result

Re: Changing ranking

2006-03-24 Thread Leon Chaddock
Hi Chris, You said: " 5 word occurances in a 10 word document would probably score the same as those 5 words in a 20 word document" OK so If I set this option would this mean no of occurences was a major factor so that: A phrase occurs 1 time in a 3 word document would be a lower rank than A

Re: delte documents into index

2006-03-24 Thread Tom Hill
Hi Thomas, > > Is it possible to write into the index and delete some documents in the > > same time? > Yes, have a look at the IndexModifier class. If by "the same time" you mean "in one session", or something like that, then yes, IndexModifier will help. But if you mean from multiple threa

Re: delte documents into index

2006-03-24 Thread Daniel Naber
On Freitag 24 März 2006 23:34, WATHELET Thomas wrote: > Is it possible to write into the index and delete some documents in the > same time? Yes, have a look at the IndexModifier class. -- http://www.danielnaber.de - To unsubs

delte documents into index

2006-03-24 Thread WATHELET Thomas
Is it possible to write into the index and delete some documents in the same time? If yes could you show me me how to proceed. I use Lucene 1.9.1 Thanks in advence.

Re: span query scoring vs boolean query scoring

2006-03-24 Thread Chris Hostetter
: *public* SpanWeight(SpanQuery query, Searcher searcher) : *throws* IOException { : *this*.similarity = query.getSimilarity(searcher); : *this*.query = query; : *this*.terms = query.getTerms(); : : idf = *this*.query.getSimilarity(searcher).idf(terms, searcher); : } : : lack

RE: java.lang.OutOfMemoryError in lucene

2006-03-24 Thread escobar5
Here is my search method, maybe it's something wrong with it: public Vector buscar(String busqueda) throws Exception, Error { Vector results = new Vector(); ResultadoBusqueda rb = null; IndexSearcher searcher = new IndexSearcher("/index"); Analyzer analyzer = new StandardAna

Re: Changing ranking

2006-03-24 Thread Chris Hostetter
(NOTE: replying back to java-user, for the reasons listed at http://people.apache.org/~hossman/#private_q ) : Date: Fri, 24 Mar 2006 08:42:29 - : Subject: Re: Changing ranking : : HI Chris, : Thanks, so would that make it as simple as a document with 5 matching : occurences ranks higher than

span query scoring vs boolean query scoring

2006-03-24 Thread Vincent Le Maout
Hi everybody, it's been a while since I try to figure out the difference between the scoring of span and boolean queries with little success. All stems from the observation that the boost of SpanTermQuery as leaves of the query tree does not seem to have much influence on the resulting scores o

Re: Joins between index and database

2006-03-24 Thread Paul . Illingworth
You can get the results from the database and then create either some boolean clauses to append to your existing Lucene query if the number of results from the data base is small. If the number of results from the database is large then you can create a filter. (Assuming you have some common k