upgrading to lucene 5.5.5

2018-04-05 Thread Chris Salem
ost()); return query; } The problem is the clause.getQuery() doesn't return a TermQuery anymore, it returns a BoostQuery. How would I get it to return a TermQuery? Or how would I get the term from a BoostQuery? Thanks for your help. Thanks, Chris Salem

RE: escaping characters

2014-08-12 Thread Chris Salem
#setAutoGeneratePhraseQueries(boolean) -- Jack Krupansky -Original Message- From: Chris Salem Sent: Monday, August 11, 2014 1:03 PM To: java-user@lucene.apache.org Subject: RE: escaping characters I'm not using Solr. Here's my code: FSDirectory fsd = FSDirectory.open(new File(C:\\indexes\\Lucene4)); IndexReader

escaping characters

2014-08-11 Thread Chris Salem
Hi everyone, I'm trying to escape special characters and it doesn't seem to be working. If I do a search like resume_text: (LS\/MS) it searches for LS AND MS instead of LS/MS. How would I escape the slash so it searches for LS/MS? Thanks

RE: escaping characters

2014-08-11 Thread Chris Salem
, Aug 11, 2014 at 8:54 AM, Chris Salem csa...@mainsequence.net wrote: Hi everyone, I'm trying to escape special characters and it doesn't seem to be working. If I do a search like resume_text: (LS\/MS) it searches for LS AND MS instead of LS/MS. How would I escape the slash so it searches

Re: ComplexPhraseQueryParser with multiple fields

2011-05-03 Thread Chris Salem
That seems to work. Thank you! Sincerely, Chris Salem Development Team Main Sequence Technologies, Inc. PCRecruiter.net - PCRecruiter Support ch...@mainsequence.net P: 440.946.5214 ext 5458 F: 440.856.0312 This email and any files transmitted with it may contain confidential information

ComplexPhraseQueryParser with multiple fields

2011-04-29 Thread Chris Salem
Hi, I've just started using the ComplexPhraseQueryParser and it works great with one field but is there a way for it to work with multiple fields? For example, right now the query: job_title: sales man* AND NOT contact_name: Chris Salem throws this exception Caused

custom scorer

2009-08-19 Thread Chris Salem
float sloppyFreq(int distance){ return 1; } }); Any idea why this wouldn't be working? Sincerely, Chris Salem

Re: searching for c++, c#, etc...

2009-07-16 Thread Chris Salem
to escape during indexing too? Sincerely, Chris Salem - Original Message - To: java-user@lucene.apache.org, Chris Salem ch...@mainsequence.net From: Ian Lea ian@gmail.com Sent: 7/16/2009 5:12:53 AM Subject: Re: searching for c++, c#, etc... Hi Escaping should work. See http

Re: searching for c++, c#, etc...

2009-07-16 Thread Chris Salem
That seems to be working. you don't have to escape the pluses though. Also, it appears that the WhitespaceAnalyzer is case sensitive, but I guess I could lowercase everything that gets indexed. thanks alot for your help. Sincerely, Chris Salem Development Team Main Sequence Technologies

Re: searching for c++, c#, etc...

2009-07-16 Thread Chris Salem
I figured c++. would be a problem. Here's what I did to get around it: value.toLowerCase().replaceAll(\\.( ?\t?\n?\r?)+, ) I'm not escaping +'s from the query so I should be good there. thanks alot. Sincerely, Chris Salem Development Team Main Sequence Technologies, Inc. PCRecruiter.net

searching for c++, c#, etc...

2009-07-15 Thread Chris Salem
Hello, I'm trying to search for the terms like c++ but the parser is stripping off the ++. I tried escaping the ++ with slashes but it's still stripping it off. I could replace + with plus, is that the best way to do it? How come escaping isn't working? thanks Sincerely, Chris Salem

Re: LUCENE-1453 not fixed?

2009-03-20 Thread Chris Salem
of the index path string seemed to work though, although it may have blown up if i tested it more extensively. Sorry for wasting your time. Sincerely, Chris Salem - Original Message - To: java-user@lucene.apache.org From: Michael McCandless luc...@mikemccandless.com Sent: 3/19/2009 6:47

LUCENE-1453 not fixed?

2009-03-19 Thread Chris Salem
) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } Sincerely, Chris Salem

Re: lucene explanation

2008-12-23 Thread Chris Salem
That worked perfectly. Thanks alot! Sincerely, Chris Salem - Original Message - To: java-user@lucene.apache.org From: Erick Erickson erickerick...@gmail.com Sent: 12/22/2008 5:00:51 PM Subject: Re: lucene explanation Warning! I'm really reaching on this But it seems you could

lucene explanation

2008-12-22 Thread Chris Salem
times increase to more than 30 seconds. Is there a better way to do this? Thanks Sincerely, Chris Salem

Re: lucene 2.4 sorting slowness

2008-12-18 Thread Chris Salem
that makes it much faster (100ms after the first run). thanks alot. also, the index will be updated oftenly throughout the day, will keeping the indexreader open recognize updates to the index? Sincerely, Chris Salem Development Team Main Sequence Technologies, Inc. PCRecruiter.net

lucene 2.4 sorting slowness

2008-12-17 Thread Chris Salem
is increased to something reasonable? Thanks Sincerely, Chris Salem Development Team Main Sequence Technologies, Inc. PCRecruiter.net - PCRecruiter Support ch...@mainsequence.net P: 440.946.5214 ext 5458 F: 440.856.0312 This email and any files transmitted with it may contain confidential information

toomanyclauses exception

2006-12-27 Thread Chris Salem
) Is there anyway to increase the amount of clauses lucene can take? This kind of large query is not uncommon so any help would be greatly appreciated. Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] (The following links were included with this email:) mailto:[EMAIL PROTECTED] (The following

spell checker

2006-09-26 Thread Chris Salem
experience_desired: doc.add(new Field(experience_desired, value, Field.Store.NO, Field.Index.TOKENIZED)); Is there another way I should do it so there is a way to build a dictionary on that field? Thanks Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] (The following links were included

spell checker

2006-09-26 Thread Chris Salem
experience_desired: doc.add(new Field(experience_desired, value, Field.Store.NO, Field.Index.TOKENIZED)); Is there another way I should do it so there is a way to build a dictionary on that field? Thanks Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] (The following links were included

FWD: Re: parser question

2006-09-08 Thread Chris Salem
any help with this? Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] - Forwarded Message - To: Mark Miller [EMAIL PROTECTED] From: Chris Salem [EMAIL PROTECTED] Sent: Wed 9/6/2006 3:58:49 PM Subject: Re: parser question its an index of 10 fields and about 10,000 records. Chris

parser question

2006-09-06 Thread Chris Salem
i set the default operator to AND, but if i have a query with an OR in it it doesn't work, for example, if i have the query 'software OR engineer' the parser interprets it as 'field:software field:engineer' and AND's them. how would i fix this? Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED

parser question

2006-09-05 Thread Chris Salem
With all the parsers I have tried a space in a query, such as doing a search for sales manager, interprets the space as an OR, is there a way to change it so that it interprets a space as an AND? Chris Salem 440.946.5214 x5458 [EMAIL PROTECTED] (The following links were included