> Hi, I have indexed the following two fields: > org_id - NOT_ANALYZEDorg_name - ANALYZED > However when I try to search by org_id, for example, 12345, > I get no hits. > I am using the StandardAnalyzer to index and search. > > And I am using: Query query = > queryParser.parse("org_id:12345");
What happens when you search with this query? Query query = new TermQuery(new Term("org_id","12345")); --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org