Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solr should not destroy my queries #41

Closed
jone opened this issue Aug 12, 2014 · 2 comments
Closed

Solr should not destroy my queries #41

jone opened this issue Aug 12, 2014 · 2 comments
Labels

Comments

@jone
Copy link
Member

jone commented Aug 12, 2014

It seems that the query processing of ftw.solr or collective.solr modifies the query inplace.
The query is afterwards broken.

Example:

>>> query = {'path': {'query': '/', 'limit': -1}, 'SearchableText': 'test*'}
>>> len(portal_catalog(query))
0
>>> len(portal_catalog(query))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zope/cache/eggs/collective.indexing-2.0b1-py2.7.egg/collective/indexing/monkey.py", line 84, in searchResults
    return self.__af_old_searchResults(REQUEST, **kw)
  File "/home/zope/cache/eggs/collective.solr-3.0-py2.7.egg/collective/solr/monkey.py", line 31, in searchResults
    return adapter(REQUEST, **kw)
  File "/home/zope/cache/eggs/collective.solr-3.0-py2.7.egg/collective/solr/dispatcher.py", line 42, in __call__
    return solrSearchResults(request, **keywords)
  File "/home/zope/cache/eggs/collective.solr-3.0-py2.7.egg/collective/solr/dispatcher.py", line 86, in solrSearchResults
    mangleQuery(args, config, schema)
  File "/home/zope/cache/eggs/ftw.solr-1.3.1-py2.7.egg/ftw/solr/patches/mangler.py", line 76, in mangleQuery
    keywords[key] = value['query']
KeyError: 'query'
>>> query
{'path': {'limit': -1}, 'SearchableText': 'test*'}

versions:

  • ftw.solr 1.3.1
  • collective.solr 3.0
@jone jone added the Bug label Aug 12, 2014
@jone
Copy link
Member Author

jone commented Aug 12, 2014

Fixed in collective/collective.solr@aebec42e

@mbaechtold
Copy link
Contributor

@jone, is this still an issue?

@jone jone closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants