Re: get the DocsEnum in lucene4.10.3

2015-03-11 Thread wangdong
Can anybody help me? I am confused about the api in lucene 4.10.3. I want to get the DocsEnum object and iterate the doc and its frequecy for a specific term. Now I get the IndexReader and IndexSearcher in my hand. What can I do ? thanks ahead! andrew ---

get the DocsEnum in lucene4.10.3

2015-03-09 Thread wangdong
I am confused about the api in lucene 4.10.3. I want to get the DocsEnum object and iterate the doc and its frequecy for a specific term. Now I get the IndexReader and IndexSearcher in my hand. What can I do ? thanks ahead! andrew

Re: understanding the norm encode and decode

2015-03-05 Thread wangdong
apache/lucene/util/SmallFloat.java#L75 [2] https://github.com/apache/lucene-solr/blob/lucene_solr_3_6_1/lucene/core/src/java/org/apache/lucene/util/SmallFloat.java#L88 On Thu, Mar 5, 2015 at 3:45 AM, wangdong wrote: thank you for your disscussion. I am a junior user of lucene, so i am not**fa

Re: understanding the norm encode and decode

2015-03-04 Thread wangdong
the same byte. On Wed, Mar 4, 2015 at 4:48 AM, wangdong wrote: I read the article about the scoring section in lucene as follows: Encoding and decoding of the resulted float norm in a single byte are done by the static methods of the class Similarity:encodeNorm() <http://lucene.apache.org/c

understanding the norm encode and decode

2015-03-03 Thread wangdong
I read the article about the scoring section in lucene as follows: Encoding and decoding of the resulted float norm in a single byte are done by the static methods of the class Similarity:encodeNorm()

Re: search on a field by a single word

2015-02-11 Thread wangdong
y including the markers. -- Ian. On Wed, Feb 11, 2015 at 7:55 AM, wangdong wrote: Hi folks I have a question as follows: suppose there are 3 document in field "name": 1) a b c 2) a b 3) a I just want to retrival doc 3) only. I try to use syntax like this: name:"a" but I

search on a field by a single word

2015-02-10 Thread wangdong
Hi folks I have a question as follows: suppose there are 3 document in field "name": 1) a b c 2) a b 3) a I just want to retrival doc 3) only. I try to use syntax like this: name:"a" but I find it is not correct.is there any way to solve my question. please help me! thanks ahead! --