Re: how to search for starts with multiple words in lucene

2008-11-28 Thread naveen.a
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, >> &

Re: SpanFirstQuery is not taking wildcard characters (like *) as a logical operator for the preffix

2008-11-28 Thread naveen.a
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 &

SpanFirstQuery is not taking wildcard characters (like *) as a logical operator for the preffix

2008-11-27 Thread naveen.a
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

how to search for starts with multiple words in lucene

2008-11-26 Thread naveen.a
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

Re: how to sort the result by ignoring case in lucene

2008-11-20 Thread naveen.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