lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "naveen.a" <naveen.ve...@gmail.com>
Subject SpanFirstQuery is not taking wildcard characters (like *) as a logical operator for the preffix
Date Thu, 27 Nov 2008 13:47:10 GMT

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:
Term term1 = new Term("110_a", "l*");
SpanFirstQuery spanFirstQuery = new SpanFirstQuery(new SpanTermQuery(term1),
1);

if i apply first query, the documnet is found,
but, it is not found for the second query
-- 
View this message in context: http://www.nabble.com/SpanFirstQuery-is-not-taking-wildcard-characters-%28like-*%29-as-a-logical-operator-for-the-preffix-tp20719556p20719556.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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