Hi Erick, Thanks for reply,
In need find document by uuid (random generated field). Example of create field in document: Document document = new Document(); document.add(new StringField("uuid", product.getId() , Field.Store.YES)); Example of query to search: Map<String, Float> boosts = new HashMap<>(); boosts.put("uuid", 1.0f); boosts.put("name", 1.0f); String[] fields = new String[]{"uuid", "name"}; MultiFieldQueryParser multiQP = new MultiFieldQueryParser(fields, engAnalyzer, boosts); quary = multiQP.parse(query); TopDocs hits = sercher.search(query, maxResult, sort); I wont to find document by uuid but result is always empty. Everything works if i create document with text field document.add(new TextField("uuid", product.getId() , Field.Store.YES)); But i need exact match... this approach good for name but not for uuid. Lucene version 7.3.0 Thanks. -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org