query question

2008-02-19 Thread Cam Bazz
Hello, I have a tokenized field where I store some info. Lets say I have "abc 1234" and "abc 678" When the user searches for "abc1234" how can I find "abc 1234" ? Best. -C.B.

Query question

2006-11-02 Thread jeff . richley
I am wanting to be able to put sets of data in a very structured way and query Lucene for only 100% matches. Is there a way to do this? I seem to be getting back at best 0.30685282. I appreciate any help and insite. Jeff Richley, Vice President Southeast Virginia Java Users Group [EMAIL PROTEC

query question

2007-08-14 Thread Mohammad Norouzi
Hi I am using WhitespaceAnalyzer and the query is " icdCode:H* " but there is no result however I know that there are many documents with this field value such as H20, H20.5 etc. this field is tokenized and indexed what is wrong with this? when I test this query with Luke it will return no res

Query question

2006-03-22 Thread WATHELET Thomas
I use Lucene 1.9.1 How to parse an unc path like \\tom\share\5\tom.doc in a query to search in the index key field? String key="\\tom\share\5\tom.doc "; Ex: Hits hits = multisearch.search(new TermQuery(new Term("key", QueryParser.escape(key; I ask this question because this key exist int

RE: query question

2008-02-19 Thread Steven A Rowe
Hi C.B., Yonik is referring to a Solr class: You should theoretically be able to use this filter with straight Lucene code, as long as it's on the classpath. (I'm guessing Yo

Re: query question

2008-02-19 Thread Yonik Seeley
One way is to use WordDelimiterFilter in the analyzer. The example schema has it in the fieldType "text"... also check out http://localhost:8983/solr/admin/analysis.jsp -Yonik On Feb 19, 2008 7:21 AM, Cam Bazz <[EMAIL PROTECTED]> wrote: > Hello, > > I have a tokenized field where I store some inf

Range Query Question

2008-07-25 Thread Thomas Becker
Hi all, I need to replace some db queries with lucene due to response time issues for sure. In this special case I need to do a range query on a field and a prefix query. I'm trying to prepare and try my query in luke with no success before migrating it to java. I need to find all names star

Simple Query Question

2008-08-18 Thread DanaWhite
s message in context: http://www.nabble.com/Simple-Query-Question-tp19042444p19042444.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Query question

2006-11-02 Thread Erick Erickson
An example (simplified, to be sure) would help a lot. What does a 100% match mean? Why do you care? What problem are you trying to solve? Why wouldn't a database server you better? Best Erick On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am wanting to be able to put sets of data i

Re: Query question

2006-11-02 Thread jeff . richley
Ah good question. The data that I am needing to query on is not a set definition of tables or columns like a database is. Let me give two examples: 1.) I have data like name="Jeff" lastname="Richley" age="33" and I need to be able to query by any combination such as name="Jeff" age="33". But if

Re: Query question

2006-11-02 Thread Chris Hostetter
: 1.) I have data like name="Jeff" lastname="Richley" age="33" and I need to : be able to query by any combination such as name="Jeff" age="33". But if : I query with name="Jeffrey" there is no match. : : 2.) The name value pairs are not really controlled until the end user is : inserting informa

Re: Query question

2006-11-04 Thread jeff . richley
I know I am getting very close on this one but can't seem to get the score above .306. My guess is that I need to do something different in my query. If at all possible, could you take a quick look at my test code and point me in the correct direction? I know everyone is very busy, so any help w

Re: Query question

2006-11-04 Thread jeff . richley
Thought I attached the code :) package com.infinity.naxx.sandbox; import java.io.IOException; import java.util.Iterator; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.KeywordAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Fi

Re: Query question

2006-11-05 Thread Chris Hostetter
: I know I am getting very close on this one but can't seem to get the score : above .306. My guess is that I need to do something different in my 1) you didn't setOmitNorms(true) 2) why do you care what the score is? .. you said you only wanted exact matches: if you don't tokenize, and you bui

Re: Query question

2006-11-05 Thread jeff . richley
Chris, thank you so much for your help. I guess I was interpretting the score incorrectly. Wasn't getting it through this thick head, I'm rolling along now. You all have done a great job with this! > > : I know I am getting very close on this one but can't seem to get the > score > : above .306

Re: query question

2007-08-15 Thread karl wettin
15 aug 2007 kl. 07.18 skrev Mohammad Norouzi: I am using WhitespaceAnalyzer and the query is " icdCode:H* " but there is no result however I know that there are many documents with this field value such as H20, H20.5 etc. this field is tokenized and indexed what is wrong with this? wh

Re: query question

2007-08-16 Thread Mohammad Norouzi
Yes karl, when I explore the index by Luke I can see the terms for example I have a field namely, patientResult, it contains value "Ca. Oxalate:many" and also other values such as "Ca. Oxalate:few" etc. the problems are when I put this query: patientResult:(Ca. Oxalate:few) the result is 84329 Ca.

Re: query question

2007-08-16 Thread testn
? >> >> -- >> karl >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Regards, > Mo

Re: query question

2007-08-17 Thread Mohammad Norouzi
well. > >> > >> Can you also use Luke to inspect documents you know should contain > these > >> terms and make sure it really is in there? > >> > >> -- > >> karl > >> > >> ---

Re: query question

2007-08-18 Thread Erick Erickson
tFieldQuery(...) method I return TermQuery > > > > > > I don't know what I was made wrong? > > > > > > > > > > > > > > > On 8/15/07, karl wettin <[EMAIL PROTECTED]> wrote: > > >> > > >> > > >> 15 aug

Re: query question

2007-08-18 Thread Mohammad Norouzi
xalate:few > > > > 112519 Ca. Oxalate:many > > > > 139141 Ca. Oxalate:many > > > > 394321 Ca. Oxalate:few > > > > 397671 Ca. Oxalate:nod > > > > 387549 Ca. Oxalate: mod > > > > > > > > however this is not the required result but another proble

Re: query question

2007-08-19 Thread Erick Erickson
D]> wrote: > > > > > > > > > > > > Can you post your code? Make sure that when you use wildcard in your > > > > custom > > > > query parser, it will generate either WildcardQuery or PrefixQuery > > > > correctly. > > > > > > > > > > > > is_maximum wrote:

Re: Query question

2006-03-22 Thread Otis Gospodnetic
From: WATHELET Thomas <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Wednesday, March 22, 2006 9:18:40 AM Subject: Query question I use Lucene 1.9.1 How to parse an unc path like \\tom\share\5\tom.doc in a query to search in the index key field? String key="\\tom\share\5\

Re: Query question

2006-03-23 Thread Chris Hostetter
: Use "Keyword" (untokenized) field to index your paths. : Consider using PerFieldAnalyzerWrapper to specify KeywordAnalyzer for your path field. : Use the force, Luke - http://www.getopt.org/luke/ , to ensure your paths are indexed correctly. you also don't wnat to use QueryParser.escape when y

Lucene query question

2006-05-09 Thread Mike Richmond
I am new to Lucene, but the behavior that I am seeing does not seem to make sense to me. I am using the latest version of Lucene (1.9.1) and executing the following code below which creates an index with a single document and only one field (named "test") with a value of "[EMAIL PROTECTED]". If

Tricky (maybe) query question

2007-12-05 Thread Daniel Noll
Hi all. Suppose you have a text index with a field used for deduplication, and then you later add a second field with further information that might also be used for deduplication. We'll call them A and B for the sake of brevity. If I have only a current text index, then I can use (a:foo AND b

Re: Range Query Question

2008-07-25 Thread Ian Lea
Hi Are you sure your range queries should have wild card asterisks on the end? Looks odd to me and I don't know what the effect would be. I'd also prefer everything in lower case but maybe you've got the right analyzers being used consistently in indexing and searching chains. -- Ian. On F

Re: Range Query Question

2008-07-25 Thread Thomas Becker
Hi Ian, no the wild cards should not be necessary. That was just the last try out of some. I now the exact content of both fields in my range query. The case is as the java code found it, but the analyzer will lowercase it anyhow. I'm trying the SimpleAnalyzer since all other seem to ommit si

Re: Range Query Question

2008-07-25 Thread Thomas Becker
Btw. I tried the wildcard since I found something on google, which noted wildcards together with StartsWith queries. Thomas Becker wrote: Hi Ian, no the wild cards should not be necessary. That was just the last try out of some. I now the exact content of both fields in my range query. The c

Re: Range Query Question

2008-07-25 Thread daniel rosher
Hi Thomas, I think one solution would be similar to the autocomplete function I've implemented in solr, you can use this as follows in solr: FieldType: This can then match on the whole string OR part of the string. To use the QueryParser, you'd not be using the query part of the ana

Re: Simple Query Question

2008-08-19 Thread Ian Lea
No, lucene does not automatically replace spaces with AND. See http://lucene.apache.org/java/2_3_2/queryparsersyntax.html -- Ian. On Tue, Aug 19, 2008 at 1:34 AM, DanaWhite <[EMAIL PROTECTED]> wrote: > > For some reason I am thinking I read somewhere that if you queried something > like: > > "

Re: Simple Query Question

2008-08-19 Thread Erick Erickson
As Ian says, but you can set the default to AND or OR, see the API docs. The 'out of the box' default is OR. See QueryParser.setDefaultOperator Best Erick On Tue, Aug 19, 2008 at 4:30 AM, Ian Lea <[EMAIL PROTECTED]> wrote: > No, lucene does not automatically replace spaces with AND. > > See ht

Analyzer on query question

2012-08-02 Thread Bill Chesky
several fields. None of these require specifying an analyzer anywhere. This is causing some odd results, I think, because a different analyzer (or no analyzer?) is being used for the query. Question: how do I build my boolean and phrase queries using the SnowballAnalyzer? One thing I did that

Re: Lucene query question

2006-05-09 Thread Otis Gospodnetic
From: Mike Richmond <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, May 9, 2006 10:18:29 PM Subject: Lucene query question I am new to Lucene, but the behavior that I am seeing does not seem to make sense to me. I am using the latest version of Lucene (1.9.1) and ex

Re: Lucene query question

2006-05-10 Thread Mike Richmond
n idea what's happening with your test field. Otis - Original Message From: Mike Richmond <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, May 9, 2006 10:18:29 PM Subject: Lucene query question I am new to Lucene, but the behavior that I am seeing does not s

Re: Lucene query question

2006-05-10 Thread Erick Erickson
I'll take a quick stab at it. What analyzer are you using with the query? In the search page of Luke, near the upper right there's the "Analyzer to use for query parsing:" box. You might try the WhitespaceAnalyzer, since that shouldn't do anything "interesting". Also, below the search box on the s

Re: Lucene query question

2006-05-10 Thread Mike Richmond
Hi Erick, I appreciate the help. I am using the "StandardAnalyzer" for both the query and for indexing. --Mike On 5/10/06, Erick Erickson <[EMAIL PROTECTED]> wrote: I'll take a quick stab at it. What analyzer are you using with the query? In the search page of Luke, near the upper right ther

RE: Lucene query question

2006-05-10 Thread Kinnar Kumar Sen, Noida
[mailto:[EMAIL PROTECTED] Sent: Wednesday, May 10, 2006 5:59 PM To: java-user@lucene.apache.org Subject: Re: Lucene query question I'll take a quick stab at it. What analyzer are you using with the query? In the search page of Luke, near the upper right there's the "Analyzer t

Re: Analyzer on query question

2012-08-03 Thread Simon Willnauer
ng up a complex > BooleanQuery from other BooleanQuerys and/or PhraseQuerys on several fields. > None of these require specifying an analyzer anywhere. This is causing some > odd results, I think, because a different analyzer (or no analyzer?) is being > used for the query. > > Qu

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
types of queries? Bill -Original Message- From: Simon Willnauer [mailto:simon.willna...@gmail.com] Sent: Friday, August 03, 2012 3:43 AM To: java-user@lucene.apache.org; Bill Chesky Subject: Re: Analyzer on query question On Thu, Aug 2, 2012 at 11:09 PM, Bill Chesky wrote: > Hi, >

Re: Analyzer on query question

2012-08-03 Thread Ian Lea
-Original Message- > From: Simon Willnauer [mailto:simon.willna...@gmail.com] > Sent: Friday, August 03, 2012 3:43 AM > To: java-user@lucene.apache.org; Bill Chesky > Subject: Re: Analyzer on query question > > On Thu, Aug 2, 2012 at 11:09 PM, Bill Chesky > wrote: >

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
ease. We really do need a wiki page for Lucene term analysis. -- Jack Krupansky -Original Message- From: Bill Chesky Sent: Friday, August 03, 2012 9:19 AM To: simon.willna...@gmail.com ; java-user@lucene.apache.org Subject: RE: Analyzer on query question Thanks Simon, Unfortunately,

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
rong to do it the way I described in my original email? Will it give me incorrect results? Bill -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Friday, August 03, 2012 9:33 AM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Bill,

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
Friday, August 03, 2012 9:32 AM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question You can add parsed queries to a BooleanQuery. Would that help in this case? SnowballAnalyzer sba = whatever(); QueryParser qp = new QueryParser(..., sba); Query q1 = qp.parse("some sn

Re: Analyzer on query question

2012-08-03 Thread Ian Lea
; So I don't see the advantage to doing it this way over the original method. > I just don't know if the original way I described is wrong or will give me > bad results. > > thanks for the help, > > Bill > > -Original Message- > From: Ian Lea [mailto:i

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
cause term analysis such as stemming) becomes unnecessary and risky if you are not very careful or very lucky. -- Jack Krupansky -Original Message- From: Ian Lea Sent: Friday, August 03, 2012 1:12 PM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Bill

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
this I'd greatly appreciate it. regards, Bill -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: Friday, August 03, 2012 1:22 PM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Bill, the re-parse of Query.toString will work pro

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
ll Chesky Sent: Friday, August 03, 2012 2:55 PM To: java-user@lucene.apache.org Subject: RE: Analyzer on query question Ian/Jack, Ok, thanks for the help. I certainly don't want to take a cheap way out, hence my original question about whether this is the right way to do this. Jack, you

Re: Analyzer on query question

2012-08-03 Thread Robert Muir
ew Term(BytesRef.deepCopyOf(bytes)); > } else >return null; > // TODO: Close the StringReader > // TODO: Handle terms that analyze into multiple terms (e.g., embedded > punctuation) > } > > -- Jack Krupansky > > -Original Message----- From: Bill Chesky > Sent

Re: Analyzer on query question

2012-08-03 Thread Ian Lea
gt;BytesRef bytes = termAtt.getBytesRef(); >>return new Term(BytesRef.deepCopyOf(bytes)); >> } else >>return null; >> // TODO: Close the StringReader >> // TODO: Handle terms that analyze into multiple terms (e.g., embedded >> punctuation) >> } &

RE: Analyzer on query question

2012-08-03 Thread Bill Chesky
Jack Krupansky [mailto:j...@basetechnology.com] Sent: Friday, August 03, 2012 4:03 PM To: java-user@lucene.apache.org Subject: Re: Analyzer on query question Simon gave sample code for analyzing a multi-term string. Here's some pseudo-code (hasn't been compiled to check it) to analyze a

Re: Analyzer on query question

2012-08-03 Thread Jack Krupansky
-- Jack Krupansky -Original Message- From: Bill Chesky Sent: Friday, August 03, 2012 5:35 PM To: java-user@lucene.apache.org Subject: RE: Analyzer on query question Thanks for the help everybody. We're using 3.0.1 so I couldn't do exactly what Simon and Jack suggested. Bu

term OR term OR term OR .... query question

2006-09-26 Thread Vladimir Olenin
Hi. I have a question regarding Lucene scoring algorithm. Providing I have a query "a OR b OR c OR d OR e OR f", and two documents: doc1 "a b c d" and doc2 "d e", will doc1 score higher than doc2? In other words, does Lucene takes into account the number of terms matched in the document in case o

Re: term OR term OR term OR .... query question

2006-09-27 Thread Grant Ingersoll
See below. Also, there is new Scoring documentation available via the website (http://lucene.apache.org/java/docs/scoring.html) that covers scoring in some detail. On Sep 26, 2006, at 5:23 PM, Vladimir Olenin wrote: Hi. I have a question regarding Lucene scoring algorithm. Providing I