Filtering times stored as longs in HEX

2010-09-16 Thread Todd Nine
Hi all, I'm using Lucandra to index notes in our system. Since we can't use numeric fields due to a bug in Cassandra (fixed in 0.7), I'm encoding all times a epoch in Hex, then storing the hex string. I have the following fields on my document. createdDate phoneNumber email I want to perform

QueryParser in 3.x

2010-09-16 Thread Scott Smith
I recently upgraded to Lucene 3.0 and am seeing some new behavior that I don't understand. Perhaps someone can explain why. I have a custom analyzer. Part of the analyzer uses the AsciiFoldingFilter. If I run a word with an umlaut through that analyzer using the AnalyzerDemo code in LIA2,

Re: Hierarchical Fields

2010-09-16 Thread Iam Jabour
Hi Steve and how want help, in this direction I added boost to fields, a bit different of in queryParser like you suggestion, but I have some quastions: 1- If I set boost to a fields they are sum to be used like doc.boost ? 2 - If field1_boost=2 and field2_boost=1 and query match to field1 in do

recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-16 Thread Bill Janssen
So, in version 3, I have to pass a version parameter to the constructor for StandardAnalyzer. Since Version.LUCENE_CURRENT is deprecated, I'd like this to be the same as the version of the index I'm using. Is there a way of getting a value of Version for an index? I don't see obvious methods on

Re: Problem searching in the same sentence

2010-09-16 Thread Simon Willnauer
Hi Sirish, see my comments inline... On Thu, Sep 16, 2010 at 7:39 PM, Sirish Vadala wrote: > > Hello All: > > Can any one suggest me the best way to allow me to perform a sentence > specific phrase search? > > Eg: Let the indexed text be: > > If you are posting a question, please try search firs

Re: Problem searching in the same sentence

2010-09-16 Thread anshum.gu...@naukri.com
Try with multi valued field while indexing i.e. Add each sentence as a separate field(with the same field name) to the same document. This would give you the results as you want. --Original Message-- From: Sirish Vadala To: java-user@lucene.apache.org ReplyTo: java-user@lucene.apache.org

Problem searching in the same sentence

2010-09-16 Thread Sirish Vadala
Hello All: Can any one suggest me the best way to allow me to perform a sentence specific phrase search? Eg: Let the indexed text be: If you are posting a question, please try search first. Your question may have already been answered. Don't post repeatedly. Wait for a few days. People will