ng like
> KeywordAnalyzer, but this assumes that you never want
> to search for anything in that field that starts in the middle.
>
> Best
> Erick
>
> On Wed, Nov 26, 2008 at 4:48 AM, naveen.a <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
&
rote:
>
> SpanTermQuery is a TermQuery and not a WildcardQuery. You could use a
> SpanRegexQuery. You could also make your own SpanWildcardQuery based
> on either WildcardQuery or SpanRegexQuery.
>
>
> You should probably tell us a bit about the problem you try to solve
&
Below is a document in lucene
--
ID : 1
110_a : library information
--
Case 1:
Term term1 = new Term("110_a", "library");
SpanFirstQuery spanFirstQuery = new SpanFirstQuery(new SpanTermQuery(term1),
1);
Case 2
Hi,
Below is a document in lucene
-
Field Value
-
ID:1
110_a:library and information
-
I need to search for starts with logic, below are the search cases for the
a
Hi Ganesh,
I have already tried my own comparator, below is my code :
SortComparator comparator = new SortComparator() {
@Override
protected Comparable getComparable(String arg0) {
final String str = arg0;
Co