My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 52: Keywords (?q=) is are not working
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by wha...@gmail.com, Aug 23, 2010
There seems to be a problem with the query by keyword:
http://israel-like.appspot.com/?q=apartheid

outputs:
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/israel-like/1.344273666690356410/main.py", line 76, in get
    (articles, hasnextpage) = logic.getArticles(query, userID, user_preferences, article_offset,language)
  File "/base/data/home/apps/israel-like/1.344273666690356410/logic.py", line 29, in getArticles
    return getArticlesFromDB(query, userID, user_preferences, article_offset, language)
  File "/base/data/home/apps/israel-like/1.344273666690356410/logic.py", line 33, in getArticlesFromDB
    articles = DbSearchEngine.get_chosen_query_of_articles(article_offset, general_query)
  File "/base/data/home/apps/israel-like/1.344273666690356410/DbSearchEngine.py", line 110, in get_chosen_query_of_articles
    total_number_of_articles = articles_general_query.count()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1818, in count
    result = raw_query.Count(limit=limit, rpc=rpc)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1275, in Count
    iterator = self._Run(limit=0, offset=offset, **kwargs)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1188, in _Run
    str(exc) + '\nThis query needs this index:\n' + yaml)
NeedIndexError: no matching index found.
This query needs this index:
- kind: Article
  properties:
  - name: keywords
  - name: language
  - name: importance
    direction: desc
  - name: source_weight
    direction: desc
  - name: weight
    direction: desc




Aug 24, 2010
Project Member #1 wha...@gmail.com
The problem was undeployed index.yaml...
Status: Fixed

Powered by Google Project Hosting