Re: Problem querying Lucene after escaping

2012-06-26 Thread secevalliv
Thanks for the advice Ian. As you suggested I tried indexing alt_id as Index.NOT_ANALYZED and stick with TermQuery. It works now. Thanks again, José M. Villaveces On 25 June 2012 17:27, Ian Lea wrote: > The key thing is to be consistent. You can either replace your > TermQuery code with the

Re: Problem querying Lucene after escaping

2012-06-25 Thread secevalliv
Hi All, Thanks for the quick reply. It seems like indeed my index is not what I think it is so maybe I'm using the wrong analyzer. Here is the code I use to index the multiple values of alt_id: indexWriter = new IndexWriter(FSDirectory.open(new File(path)),newStandardAnalyzer(Version. LUCENE_30)

Problem querying Lucene after escaping

2012-06-25 Thread secevalliv
I'm quite new to Lucene and recently, I ran into a problem. I have a lucene document that looks like this: --- type --- gene --- id --- xla:379474 --- alt_id --- emb:BC054227 gb:BC054227 ncbi-geneid:379474 ncbi-gi:148230166 rs:NM_001086315 rs:NP_001079784 unigene:Xl.24622 xla:379474 I created