Re: Store/Index Email Address in Lucene

2008-07-04 Thread miztaken
Hi there, for email addresses string such as "[EMAIL PROTECTED]; jack smith" I might do wild card search like john* or jack* or [EMAIL PROTECTED] for *wherever.com for phrase search i can do "jack smith" for general search i might do "[EMAIL PROTECTED]" I tokenized the string and indexed it in

Re: Multifield Search with OR and AND on different doc Fields

2008-07-04 Thread Karl Wettin
4 jul 2008 kl. 08.30 skrev RanjithStar: My requirement is to search on SEVEN Fields say F1,F2,F3,F4,F5,F6,F7 having F1,F2,F3,F4 on one doc index and F5,F6,F7 on a different doc index I need to perform a search with ((F1=9 AND F2=4) AND (F3=keyword OR F4=keyword)) OR (F5=9 AND F6=4 AND F7=

Re: Store/Index Email Address in Lucene

2008-07-04 Thread Karl Wettin
Please show us a couple of examples from the "various type of search" you want to be able to handle. The information you supply says nothing about your use cases. In what way do you want to use phrase queries on email addresses? Do you want to tokenize parts of a single email address? Or do

Re: too many clauses exception

2008-07-04 Thread Daniel Naber
On Freitag, 4. Juli 2008, Gaurav Sharma wrote: > I am stuck with an exception in lucene (too many clauses). > When i am using a wild card such as a* i am getting too many clauses > exception. It saying maximum clause count is set to 1024. Is there any > way to increase this count. Please see http

Re: Search question (newbie)

2008-07-04 Thread Chris Hostetter
: How can I trap this situation correctly? I receive user queries like this : (quotes included): : :/from:"fred flintston*"/ : : Which produces a query string of : :/+from:fred body:flintston/ (where /body/ is the default field) either you've left something out, or some aspect

RE: Lucene Error : java.io.FileNotFoundException

2008-07-04 Thread John Griffin
Yug, In the root directory of your JBoss install there is a file that lists all the jar files your version of JBoss is guaranteed to work with (jar-versions.xml). It looks like the jar you're trying to add has a dependency on another jar that doesn't have what it's looking for. Get on the JBoss f

RE: Search question (newbie)

2008-07-04 Thread John Griffin
Chris, Yes, when there are multiple types of queries involved (Term & Wildcard in this case) that's how I handle it. A disadvantage of this is that the user input must be somewhat restricted since you need to know what's coming. An important thing to remember is that Wildcard, Prefix and one othe

Re: Class in Lucene that Perform Search

2008-07-04 Thread Yonik Seeley
Moving to java-user. Index the field and use the FieldCache. You don't want to modify core lucene classes for this common use-case. -Yonik On Thu, Jul 3, 2008 at 10:37 PM, blazingwolf7 <[EMAIL PROTECTED]> wrote: > I am trying to retrieve the contentLength and the URL of each document from > the

Re: Search question (newbie)

2008-07-04 Thread Chris Bamford
John, Thanks, I think I'm getting this now So you created your own BooleanQuery and parsed the string yourself, adding strings as TermQuerys etc., rather than using a QueryParser ? Cheers, - Chris John Griffin wrote: Chris, I've had similar requirements in the past. First strip the

Re: Lucene Error : java.io.FileNotFoundException

2008-07-04 Thread Michael McCandless
I'm not familiar with JBoss' error output, but, maybe this is telling you your version of HIbernate is also old (ie depends on Lucene 1.4)? Mike yugana wrote: I see a JAR file at D:\jboss-portal-2.6.5.GA\server\default\deploy\jboss-portal.sar \portal-cms.sar\lib . when I tried to replac

Re: Lucene Error : java.io.FileNotFoundException

2008-07-04 Thread yugana
I see a JAR file at D:\jboss-portal-2.6.5.GA\server\default\deploy\jboss-portal.sar\portal-cms.sar\lib . when I tried to replace this JAR with the new JAR file, I get the following errors while restarting the JBoss server. 11:50:10,046 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

Re: Sorting case-insensitively

2008-07-04 Thread Paul J . Lucas
On Jun 30, 2008, at 8:08 PM, Paul J. Lucas wrote: On Jun 30, 2008, at 8:55 PM, Paul J. Lucas wrote: If I have a SortField with a type of STRING, is there any way to sort in a case-insensitive manner? Couldn't I also use a custom SortComparator? OK, so I tried that by doing: SortFi

Re: Lucene Error : java.io.FileNotFoundException

2008-07-04 Thread Michael McCandless
Are you getting exactly the same error (same source files and exact same line numbers)? If so, somehow a Lucene 1.4 JAR is still sneaking in. Lucene 1.4 won't be able to read an index created by Lucene 2.3. You'll see exactly that FileNotFoundException because newer versions of Lucene