:)
Im trying to retrieve data from my index, but when I try to do an echo from one
of the hits I always get that the field is not found in the document, in my
case I'm adding four fields, url -> text, identifier -> keyword, content ->
unstored and title -> text, but when I print the hits object I see that the
fields are there:
...
[_fields:private] => Array
(
[0] =>
Zend_Search_Lucene_Index_FieldInfo Object
(
[name] => url
[isIndexed] => 1
[number] => 0
[storeTermVector]
=> 0
)
[1] =>
Zend_Search_Lucene_Index_FieldInfo Object
(
[name] => identifier
[isIndexed] => 1
[number] => 1
[storeTermVector]
=> 0
)
[2] =>
Zend_Search_Lucene_Index_FieldInfo Object
(
[name] => content
[isIndexed] => 1
[number] => 2
[storeTermVector]
=> 0
)
[3] =>
Zend_Search_Lucene_Index_FieldInfo Object
(
[name] => title
[isIndexed] => 1
[number] => 3
[storeTermVector]
=> 0
)
)
...
This is waht I got in the folder where I'm storing the Lucene index:
-rw-r--r-- 1 www-data www-data 670 Jul 30 20:56 _d.cfs
-rw-r--r-- 1 www-data www-data 107 Jul 30 20:56 _d.sti
-rw-r--r-- 1 www-data www-data 4 Jul 30 20:44 deletable
-rw-r--r-- 1 www-data www-data 0 Jul 30 20:58 index.lock
-rw-r--r-- 1 www-data www-data 0 Jul 30 20:56 index.optimization.lock
-rw-r--r-- 1 www-data www-data 27 Jul 30 20:56 segments
Any help ?
________________________________
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents of this
message, which arise as a result of e-mail transmission. If verification is
required please request a hard-copy version.