lucene 1.3 working with java -


i using lucene 1.3. trying index 1 key , values list. when ever search key, should list of results, getting 0 results.i declaring pricelistkey long

here code tried.

string fieldname = plibean.getproductid(); field skufield = new field(string.valueof(pricelistkey),fieldname, true, true, false); doc.add(skufield); writer.adddocument(doc); 

this indexed in key:listofvalues

the query passing term query.

termquery qry = new termquery(new term(key,key)); search(qry); 


Comments

Popular posts from this blog

java - Callback from new thread to class from which thread was initiated -

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -