Bug 297561 - Searches in quotes produce an error
Summary: Searches in quotes produce an error
Status: RESOLVED FIXED
Alias: None
Product: docs.kde.org
Classification: Websites
Component: docs.kde.org (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-05 22:15 UTC by bill p. (aka google01103)
Modified: 2016-02-22 00:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bill p. (aka google01103) 2012-04-05 22:15:06 UTC
Searched for "folder view" docs.kde.org and got 

<type 'exceptions.TypeError'>	Python 2.6.6: /usr/bin/python
Thu Apr 5 22:07:44 2012


A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /srv/www/docs/cgi-bin/desktopdig/search.cgi in ()
  500         print "Content-Type: text/html; charset=utf-8\n"
  501         print res.encode('utf-8')
  502         return
  503 
  504 main()
main = <function main>
 /srv/www/docs/cgi-bin/desktopdig/search.cgi in main()
   94                 showPage(form)
   95         else:
   96                 search(form)
   97         return
   98         
global search = <function search>, form = FieldStorage(None, None, [MiniFieldStorage('coll... 'all'), MiniFieldStorage('q', '"folder view"')])
 /srv/www/docs/cgi-bin/desktopdig/search.cgi in search(form=FieldStorage(None, None, [MiniFieldStorage('coll... 'all'), MiniFieldStorage('q', '"folder view"')]))
  336                 matches = s.getOrResults()
  337         else:
  338                 matches = s.getAndResults()
  339 
  340         # Filter:
matches undefined, s = <Search.Search instance>, s.getAndResults = <bound method Search.getAndResults of <Search.Search instance>>
 /srv/www/docs/cgi-bin/desktopdig/backend/Search.py in getAndResults(self=<Search.Search instance>)
   90                 for token in self.query_tokens:
   91                         if type(token) is types.ListType:
   92                                 matches = self.idx.searchPhrase(token)
   93                         else:
   94                                 matches = self.idx.searchTerm(token)
matches undefined, self = <Search.Search instance>, self.idx = <FullTextIndex.FullTextIndex instance>, self.idx.searchPhrase = <bound method FullTextIndex.searchPhrase of <FullTextIndex.FullTextIndex instance>>, token = [u'folder', u'view']
 /srv/www/docs/cgi-bin/desktopdig/backend/FullTextIndex.py in searchPhrase(self=<FullTextIndex.FullTextIndex instance>, terms=[u'folder', u'view'])
  412                                                                 if prev_pos:
  413                                                                         prev_pos = prev_pos[1]
  414                                                                         for tmp_prev_pos in prev_pos:
  415                                                                                 try:
  416                                                                                         # TODO: add proximity search here
tmp_prev_pos undefined, prev_pos = 1


<type 'exceptions.TypeError'>: 'int' object is not iterable 
      args = ("'int' object is not iterable",) 
      message = "'int' object is not iterable"
Comment 1 Luigi Toscano 2016-02-22 00:49:46 UTC
Sorry for the long waiting time.
A new search system has been recently deployed and searches in quote do not produce backtraces anymore (but lead to real results).