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
#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
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
, 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
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
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
float sloppyFreq(int distance){
return 1;
}
});
Any idea why this wouldn't be working?
Sincerely,
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
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
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
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
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
) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
Sincerely,
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
times increase to more than 30 seconds. Is there a better way
to do this?
Thanks
Sincerely,
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
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
)
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
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
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
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
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
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
23 matches
Mail list logo