views:

123

answers:

1
+1  A: 

I think you should use the QueryParser and let it build the appropriate Query object instead of using something specific like the PrefixQuery.

In Java:

QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, "nombreAnalizado", new StandardAnalyzer(Version.LUCENE_CURRENT));
Query query = parser.parse(_que);

Make sure you are using the same analyzer that you used for indexing.

Pascal Dimassimo
Works great, thanks!!!
Sole