View Single Post
  #1 (permalink)  
Old 03-03-2008, 01:53 PM
rahy rahy is offline
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default to many results for myfield:100020100000002484

Hi,
i created a lucene indix with the java API. Now i want to search on the created index with the Zend API. The index contains a document with the field <my_criteria.link> and the value '100020100000002484'.
If i search
PHP Code:
$term  = new Zend_Search_Lucene_Index_Term('100020100000002484''my_criteria.link');
$query = new Zend_Search_Lucene_Search_Query_Term($term);
$hits  $index->find($query); 
everything works fine.
But the seach for a lower ID like '100020100000002482'
PHP Code:
$term  = new Zend_Search_Lucene_Index_Term('100020100000002482''my_criteria.link');
... 
the same document will be found!
BUT with
PHP Code:
$term  = new Zend_Search_Lucene_Index_Term('100020100000002472''my_criteria.link');
... 
i got no results (as expected ).
Can anyone tell me why the document is found by the second string ?
I use the lukeall.jar application to check the created Index and test the querys and it looks fine.
Thanks,
Ralf

Last edited by rahy : 03-03-2008 at 02:04 PM.
Reply With Quote