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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -