ZF-11509: Zend_Search_Lucene_Index_Term not handling :'s correctly

Description

When a term contains a : the search will not succeed. I have tried with the : escaped, : as well as quoting the term with double quotes and both fail. $term = 'http://127.0.0.1:10088/controller/action'; $urlterm = new Zend_Search_Lucene_Index_Term($term, 'url'); $query = new Zend_Search_Lucene_Search_Query_Term($urlterm); $hits = $index->find($query); echo "Hits: " . count($hits) . "\n"; // will return 0 /*however the following works */ $hits = $index->find('url:"' . $term . '"'); echo "Hits: " . count($hits) . "\n"; // will return 1

A complete test example is at http://pastie.org/2119220.

Comments

No comments to display