Issues

ZF-6290: Zend_Search_Lucene doesn't permit "*" queries

Issue Type: Bug Created: 2009-04-14T02:32:53.000+0000 Last Updated: 2009-04-30T02:19:31.000+0000 Status: Resolved Fix version(s): - 1.8.1 (12/May/09)

Reporter: Mark (skyblaze) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:

Description

In version 1.7.8 i noticed that the framework gives a Zend_Search_Lucene exception when i try to do a search with only the asterix wildcard. Why? I should be able to use this type of search to get all the data in the index

Comments

Posted by Matt Schraeder (frozen-solid) on 2009-04-17T06:19:08.000+0000

This is present both in 1.7.7 and 1.7.8. Each term needs to have at least 3 characters alongside the wild card in order to work. So the search "ha_" will fail, but "har_" works fine. The easiest work around is to just make sure each term with a wildcard in it has at least 3 characters. It is still a rather large hassle.

Posted by Mark (skyblaze) on 2009-04-17T06:29:05.000+0000

i Know i have to digit at least 3 characters with the wildcard term but why this behaviour? I mean i know this is not the same as in the original lucene library, is this right? Like this i can't do a search for all data with lucene an i think this is a great lack.

Posted by Alexander Veremyev (alexander) on 2009-04-30T02:19:26.000+0000

Required prefix length can be altered using Zend_Search_Lucene_Search_Query_Wildcard::setMinPrefixLength($minPrefixLength) method (and retrieved using Zend_Search_Lucene_Search_Query_Wildcard::getMinPrefixLength()).

Documentation is just updated.

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