How to get whole index in ZEND Lucene?

334 views Asked by At

Hi I am looking for a way to get the whole index if my query is nothing.

My lucene is a picture of my database without some unwanted content, like expired annonces... So I would like to use only lucene to get annonces, and for that I need a way to get the whole index.

Any ideas?

thanks!

2

There are 2 answers

0
Faboo03 On BEST ANSWER

This is not the answer but something wich works for me: Using an indexKey like is_indexed, always true.

I am adding "is_indexed:1" to my query and it works...

If you have something else, let me know!

0
Ian Lewis On

I tend to use a field which is named after the index such as:

$oDoc->addField(
     Zend_Search_Lucene_Field::keyword(
         'index',
         'availability'
     )
 );

Then the term query will return all fields. It's not pretty but it works fine.