Issues

ZF-7244: Lucene search order always case sensetive

Issue Type: Bug Created: 2009-07-11T12:59:18.000+0000 Last Updated: 2011-08-30T12:35:35.000+0000 Status: Open Fix version(s): Reporter: ivan (ivan.veretelnyk) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:

Description

When use case insensetive analyzers lucene work good. But sortings are always case sensetive. It would be good to have such option. Because I really think that word "apache" should be before word "Zend" if I sort as Strings. It could be fixed very easy like this :

near line 990 of Zend_Search_Lucene class.

$valuesArray = array_map('mb_strtolower', $valuesArray); $sortArgs[] = $valuesArray;

Comments

Posted by Shaun Farrell (farrelley) on 2011-08-30T12:35:35.000+0000

Can you post a full code example. This seems to work for me with

$hits = $index->find($query, '$field', SORT_STRING, SORT_DESC);

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