You are here: Foswiki>Tasks Web>Item13383 (26 Apr 2015, GeorgeClark)Edit Attach

Item13383: Search for one character result an error

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches: master
Reported By: JozefMojzis
Waiting For:
Last Change By: GeorgeClark

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
 

ItemTemplate edit

Summary Search for one character result an error
ReportedBy JozefMojzis
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:73475de9959f
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins distro:73475de9959f
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 26 Apr 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy