ZF-7244: Lucene search order always case sensetive
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);}}