Issues

ZF-11509: Zend_Search_Lucene_Index_Term not handling :'s correctly

Issue Type: Bug Created: 2011-06-25T05:58:44.000+0000 Last Updated: 2011-06-25T05:58:44.000+0000 Status: Open Fix version(s): Reporter: Matt Comeione (ideocentric) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts