Find all Words in a Document

2004-04-02 Thread peters marcus
Hi there, is there a way to get all words stored in the index for a given document ? Thanks Marcus Peters - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Performing exact search with Lucene

2004-04-02 Thread Phil brunet
Hi all. I'm migrating a part of an application from Oracle intermedia to Lucene (1.3) to perform full text searches. I'd like to know if there is a way to perform exact queries. By exact query, i mean beeing able to match ONLY document that are exactely equals to the terms of the query.

Re: Zero hits for queries ending with a number

2004-04-02 Thread lucene
On Saturday 13 March 2004 11:06, Otis Gospodnetic wrote: Field.Keyword is suitable for storing data like Url. Give that a try. I just tried this a minute ago and found that I cannot use wildcards with Keywords: url:www.yahoo.*

Re: Performing exact search with Lucene

2004-04-02 Thread Tatu Saloranta
On Friday 02 April 2004 08:12, Phil brunet wrote: Hi all. I'm migrating a part of an application from Oracle intermedia to Lucene (1.3) to perform full text searches. Congratulations! :-) I'd like to know if there is a way to perform exact queries. By exact query, i mean beeing able to

Simple date/range question

2004-04-02 Thread lucene
Hi! I do have some problems with date and the QueryParser range syntax. code: java.sql.Timestamp time = row.getTimestamp(timestamp); if (time != null) doc.add(Field.Keyword(date, new Date(time.getTime(; query: date:[20030101 TO 20030202] date:20030101 The first query does throw a

Re: Simple date/range question

2004-04-02 Thread Otis Gospodnetic
MMDD is the format You Timestamp contains HH mm, and ss, that's likely why your second query doesn't match anything. Drop everything other than MMDD from the index, and things should work. Otis --- [EMAIL PROTECTED] wrote: Hi! I do have some problems with date and the QueryParser

Numeric field data

2004-04-02 Thread Tate Avery
Hello, Is there a way (direct or indirect) to support a field with numeric data? More specifically, I would be interested in doing a range search on numeric data and having something like: number:[1 TO 2] ... and not have it return 11 or 103, etc. But, return 1.5, for example. Is

Re: Simple date/range question

2004-04-02 Thread lucene
On Friday 02 April 2004 18:59, Otis Gospodnetic wrote: You Timestamp contains HH mm, and ss, that's likely why your second My timestamp contains date and time. query doesn't match anything. Drop everything other than MMDD from the index, and things should work. What's wrong with new

Re: Numeric field data

2004-04-02 Thread Stephane James Vaucher
Hi Tate, There is a solution by Erik that pads numbers in the index. That would allow you to search correctly. I'm not sure about decimal, but you could always add a multiplier. HTH, sv On Fri, 2 Apr 2004, Tate Avery wrote: Hello, Is there a way (direct or indirect) to support a field

Re: phrase search with slop seem to ignore term order

2004-04-02 Thread Ioan Miftode
Answering this myself: I just realized that SpanQuery does everything I need. ioan At 11:17 AM 4/2/2004, you wrote: Hi everybody I'm trying to do some phrase searches with slop 0. I noticed that if you set the slop to anything higher than 0 the order of the terms does not matter anymore. EG.

Re: Zero hits for queries ending with a number

2004-04-02 Thread Erik Hatcher
On Apr 2, 2004, at 10:00 AM, [EMAIL PROTECTED] wrote: On Saturday 13 March 2004 11:06, Otis Gospodnetic wrote: Field.Keyword is suitable for storing data like Url. Give that a try. I just tried this a minute ago and found that I cannot use wildcards with Keywords: url:www.yahoo.* You *can* use

Re: Simple date/range question

2004-04-02 Thread Erik Hatcher
Let me clarify what Otis meant as well as shed some light on the other questions in this thread. On Apr 2, 2004, at 10:03 AM, [EMAIL PROTECTED] wrote: if (time != null) doc.add(Field.Keyword(date, new Date(time.getTime(; query: date:[20030101 TO 20030202] date:20030101 The first query does

Re: starts with query functionality

2004-04-02 Thread Incze Lajos
On Fri, Apr 02, 2004 at 10:20:54AM -0600, Chad Small wrote: We have a requirement to return documents with a title field that starts with a certain letter. Is there a way to do something like this? We're using the StandardAnalyzer Example title fields: This is the title of a