lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: short search terms
Date Wed, 26 Sep 2012 21:17:38 GMT

: I have a key field that will only ever have a length of 3 characters. I am
: using a StandardAnalyzer and a QueryParser to create the Query
: (parser.parse(string)), and an IndexReader and IndexSearcher to execute the
: query (searcher(query)). I can't seem to find a setter to allow for a 3
: character search string. There is one setMinWordLen, but it isn't applicable

there's a lot of missing information here ... what do you mean "allow for 
a 3 character search string" .. the query parser doesn't have anything in 
it that would prevent a 3 (or 3, or 1) character search string, so i 
suspect that's not really the question you mean to ask.

what is problem you are actaully seeing?  do you have a query that isn't 
matching the docs you think it should? what query? what docs? what does 
the code look like?

can you explain more what this 3 character ifeld represents, and how you 
want to use it?

https://people.apache.org/~hossman/#xyproblem
Your question appears to be an "XY Problem" ... that is: you are dealing
with "X", you are assuming "Y" will help you, and you are asking about "Y"
without giving more details about the "X" so that we can understand the
full issue.  Perhaps the best solution doesn't involve "Y" at all?
See Also: http://www.perlmonks.org/index.pl?node_id=542341

-Hoss

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message