Date Fields

2010-06-29 Thread liat oren
Hi all, I made a mistake, finished indexing all my database (millions of documents..), regarding field dates as usual fields. Instead of doing: doc.add(Field.Keyword(indexDate, new Date()); I added it as: doc.add(new Field(indexDate, String.valueOf(new Date().toString()), Field.Store.YES,

Re: searching for wildcard as valid character

2010-06-29 Thread frueskens
Thank you all for your support. I'm using now RegEx query from Lucene Contrib package which handles it fine in my unit test. I'm waiting for confirmation from the other developer team if this fixed their issue. -- View this message in context:

Re: Date Fields

2010-06-29 Thread Ian Lea
How are you searching? If looking for exact dates I guess you could make it work by passing in the exact value but ranges would be challenging. My advice would be to upgrade to a current version of Lucene and reindex everything with the date as a NumericField. -- Ian. On Tue, Jun 29, 2010 at

Re: Lucene In Action free chapter on CLucene

2010-06-29 Thread Michael McCandless
You're welcome! One small clarification: it's the section (10.2 -- CLucene) not the whole chapter 10 that's free for downloading... Mike On Mon, Jun 28, 2010 at 4:57 PM, Itamar Syn-Hershko ita...@code972.com wrote: Hi, Just to let everyone know Manning have released an extra chapter from

Unsupported operation in TermDocs.next() when migrating from 2.4 to 2.9

2010-06-29 Thread Jerven Bolleman
Hi All, I am finally having some time to upgrade our lucene from the 2.4 series to the 2.9 series. And I am having a problem that while everything compiles great I am getting a new UnsupportedOperationException. java.lang.UnsupportedOperationException at

Re: Date Fields

2010-06-29 Thread liat oren
I was afraid this would be the answer.. Thanks a lot! Liat On 29 June 2010 12:03, Ian Lea ian@gmail.com wrote: How are you searching? If looking for exact dates I guess you could make it work by passing in the exact value but ranges would be challenging. My advice would be to upgrade

Adding a new field to existing Index

2010-06-29 Thread Naveen Kumar
Hey, I need to add a new field (a stored , not indexed field) for all documents present in an existing large index. Reindexing the whole index will be very costly. Is there a way to do this or any work around? I would also like to know, if data or term vector, of a field indexed without storing,

Re: Adding a new field to existing Index

2010-06-29 Thread Mango
Unfortunately, I don't think it is possible to add new field without re-indexing. As for extracting content from the field, it should be possible to retrieve data if the term vectors were stored with positions offset (Field.TermVector.WITH_POSITIONS_OFFSETS). If not, I don't think it's possible.

IndexWriter.mergeDocument(Term term, Document doc)

2010-06-29 Thread Pablo Mendes
Hi all, I'm looking for a functionality similar to IndexWriter.updateDocument() *IndexWriter.**updateDocumenthttp://lucene.apache.org/java/3_0_2/api/core/org/apache/lucene/index/IndexWriter.html#updateDocument%28org.apache.lucene.index.Term,%20org.apache.lucene.document.Document%29

example of processing terms in query results?

2010-06-29 Thread Peter Wilkins
Can someone point me to a code example that demonstrates processing terms from a query result? I want to extract payloads from the terms that are selected by the query. I'm having difficulty getting to an object in the query result that implements getPayload(). Thank you for the assistance,

example of processing tokens from query results?

2010-06-29 Thread Peter Wilkins
Can someone point me to a code example that demonstrates processing tokens from a query result? I want to iterate over TermPositions but can't find my way to an object that instantiates that interface. Thank you for the assistance, Peter

AUTO: Paul Magrath is out of the office (returning 01/07/2010)

2010-06-29 Thread Paul D Magrath
I am out of the office until 01/07/2010. Note: This is an automated response to your message example of processing terms in query results? sent on 29/6/10 18:09:45. This is the only notification you will receive while this person is away.

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-29 Thread a peng
Hi Erick, Any comments about this requirement? 2010/6/29 a peng zhoudengp...@gmail.com Hi Erick, Thanks for you reply, now I get the point why I can not get the search result. But can you guide me how can I use Lucene to implement the following search feature: Basically we can call this

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-29 Thread Erick Erickson
No, I really don't have a good solution off the top of my head, perhaps others can chime in... Although I suppose you could fire multiple queries dropping out some number of search terms, but I don't know whether that satisfies your requirements. E.g. search the following phrases this is a formal

Document Order in IndexWriter.addIndexes

2010-06-29 Thread Apoorv Sharma
while calling addindexes or addindexes with no optimize can any gurantee be given about the document order in the new documents given that the order of directories/indexreader is fixed. So is it that ith document coming from jth indexreader will always have some x(i,j) position in the final

Re: example of processing tokens from query results?

2010-06-29 Thread tarun sapra
Similar kind of code is given in Lucene in Action 2nd edition book , you can dwld the code from the manning website. On Wed, Jun 30, 2010 at 2:11 AM, Peter Wilkins pwilk...@mit.edu wrote: Can someone point me to a code example that demonstrates processing tokens from a query result? I want