What is the default insertion order in zend lucene index? -


i'm building application need bring posibility navigate trough 1 index or more (without query).

when inserting documents on index thought available on same order been inserted, isn't that. if insert in 1 field numerical values or alphanumeric representations.

i thought getting documents (1, 2, 3, 10, 14, 28, 56, 57) like:

for($x=0;$x<$index->maxdoc();$x++){    echo $index->getdocument($x)->idfield."<br>"; } 

... wold 1, 2, 3, 10, 14, 28, 56, 57... right?, doesn't happen. 57, 1, 28, 2, 10, 3, 14, 56... , that's question. there default order on insertion?

your best friend in figuring out going lucene source code. find default order, may not liking.

by way, why need navigate through index without query? (maybe there different way approach problem.)


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -