Re: NumberTools

2005-03-21 Thread John Patterson
Chris Hostetter fucit.org> writes: > > So why couldn't a user specified NumberFormat object be used to > convert that string into an Integer? Allowing people to format > their numbers in a way that sorts lexigraphically for Range Filters, > but still get the good Numeric Sot

Re: boosting?

2005-03-21 Thread Paul Elschot
Stephan, On Monday 21 March 2005 22:35, Stefan Groschupf wrote: > Hi there, > how to get the real boost value of a field or document? > The java doc says that it is _may_ not correct returned when reading a > document with a index reader. > Any hints how to get the boost when reading a document

Re: using Expression language for lucene api

2005-03-21 Thread Otis Gospodnetic
I think there are some taglibs that let you call functions on objects, but you could also considering wrapping Hits in something that is JSTL friendly, perhaps a List that JSTL knows how to handle. Otis --- Omar Didi <[EMAIL PROTECTED]> wrote: > I have the following expression : > > > > resu

Re: new added documents not showing

2005-03-21 Thread Otis Gospodnetic
Hello, Sorry if this is stating the obvious, but have you used Luke to verify that the new documents were indexed in the first place? Sorry if you've already mentioned this. Otis --- [EMAIL PROTECTED] wrote: > > When do you open the index writer? Where is the code? > > Ah, sorry. That last s

Re: boosting?

2005-03-21 Thread Erik Hatcher
Stefan, Boosts are not stored directly, necessarily. Each field has an associated normalization factor, of which boost is multiplied into. This value is precomputed at indexing time, so getting the boost isn't possible unless the length normalization is 1.0 (which is not usually a good idea).

boosting?

2005-03-21 Thread Stefan Groschupf
Hi there, how to get the real boost value of a field or document? The java doc says that it is _may_ not correct returned when reading a document with a index reader. Any hints how to get the boost when reading a document? Thanks. Stefan -

using Expression language for lucene api

2005-03-21 Thread Omar Didi
I have the following expression : results is of type Hits, i want to know if there is a way using Expression language or jstl to access for example: result.doc(i).

Re: new added documents not showing

2005-03-21 Thread roy-lucene-user
correct, we also can't see the new documents when we open an IndexReader to the main index. Roy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: new added documents not showing

2005-03-21 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Ah, sorry. That last section is in a method that gets called > in a loop. The shortest version of your code is: - void mainFunction() { IndexWriter writer = null; writer = new IndexWriter( mainindex, n

Re: new added documents not showing

2005-03-21 Thread roy-lucene-user
> When do you open the index writer? Where is the code? Ah, sorry. That last section is in a method that gets called in a loop. IndexWriter writer = null; try { writer = new IndexWriter( mainindex, new StandardAnalyzer(), false ); for ( int i = 0; i < dir

Re: NumberTools

2005-03-21 Thread Chuck Williams
: One annoyance I have run across is the impedance mismatch between : range queries and sorting. : : If your terms are indexed as standard numbers, then integer sorting : is fast, but range queries don't work (for negative values). If you : format the terms such that range queries work for any i

RE: new added documents not showing

2005-03-21 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I just realized that the way I described our process was off a little > bit. > > Here's the process again: > > I apologize for the amount of code below. When do you open the index writer? Where is the code? Pasha Bizhan http://lucene

RE: new added documents not showing

2005-03-21 Thread Pasha Bizhan
Hi, > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I just realized that the way I described our process was off > a little bit. > > Here's the process again: > > I apologize for the amount of code below. When you open the index writer? Where is the code? Pasha Bizhan http://lucenedo

Re: NumberTools

2005-03-21 Thread Chris Hostetter
: One annoyance I have run across is the impedance mismatch between : range queries and sorting. : : If your terms are indexed as standard numbers, then integer sorting : is fast, but range queries don't work (for negative values). If you : format the terms such that range queries work for any in

Re: new added documents not showing

2005-03-21 Thread roy-lucene-user
On Sat, 19 Mar 2005 22:43:44 +0300, Pasha Bizhan <[EMAIL PROTECTED]> wrote: > Could you provide the code snippets for your process? > Sure (thanx for helping, btw) I just realized that the way I described our process was off a little bit. Here's the process again: 1. grab all index Directorys

Re: Multiple Field Queries

2005-03-21 Thread Gusenbauer Stefan
Aad Nales wrote: Perhaps i misunderstand but it seems to me that if you execute the add with two times a false value you will end up with the required result. (content:test) (filename:test) which is equivalent to your requested query. hope this helps, Aad Nales Gusenbauer Stefan wrote: Hello, at

RE: how to detect index integrity?

2005-03-21 Thread Ravi Rao
> From: [EMAIL PROTECTED] > Sent: Fri 3/18/2005 11:34 PM > Is there any way to detect the index's integrity? > Sometimes I came upon exceptions like these. If it happens, my only way > is to delete the corrupted index. >* Exception in thread "main" java.io.IOException : read past EOF >*

Re: Multiple Field Queries

2005-03-21 Thread Aad Nales
Perhaps i misunderstand but it seems to me that if you execute the add with two times a false value you will end up with the required result. (content:test) (filename:test) which is equivalent to your requested query. hope this helps, Aad Nales Gusenbauer Stefan wrote: Hello, at the moment i cann

Multiple Field Queries

2005-03-21 Thread Gusenbauer Stefan
Hello, at the moment i cannot search through the mailinglist archives so i will bother you. I will search over multiple fields for example content and filename. The MultiFieldQueryParser is not applicable for me so i create the query syntax programmatically. The querystring is parsed with the Q

Re: Removing similar documents from search results

2005-03-21 Thread Miles Barr
On Sun, 2005-03-20 at 00:49 -0800, Chris Hostetter wrote: > Actually, your "Split across several pages" comment implies that you want > a system which can tell that page 1 of a multipage article should be > grouped with page 2 -- which may be radically different content. Most > multipage documents