Item13383: Search for one character result an error
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches: master
How to reproduce
- Enter into the search box one character e.g.:
x
- press enter
The following error appear:
Could not perform search. Error was: Can't locate object method "pagesize" via package "Foswiki::Search::InfoCache"
--
JozefMojzis - 25 Apr 2015
For some reason, certain characters are causing the
InfoCache to return different object type.
Search for "a", and the store->query() returns
'Foswiki::Search::InfoCache'
which doesn't have the pagesize method.
Search for "/" and store->query() returns
'Foswiki::Iterator::PagerIterator'
It doesn't matter whether the search had any results. it can fail with 0 or with many results expected.
--
GeorgeClark - 25 Apr 2015
Fixed. When stop words result in an empty query, the wrong type of object was returned to the caller.
--
GeorgeClark - 26 Apr 2015