-
Notifications
You must be signed in to change notification settings - Fork 46
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
Removing SearchableText from portal_catalog yields to plone.restapi warning #193
Comments
@sauzher can you please elaborate? |
Doc, reports:
After 5.0.3, c.solr uses plone.restapi to make searches but, if you do actually remove This warning does not affect the search itself, it simply pollutes the event log without a real reason. Perhaps it is related to plone.restapi rather than c.solr. thanks, |
@sauzher do you have a real URL as a pointer? |
@tisto I apologize, but I didn't get what do you asking for :-/ |
@sauzher a URL that points to what you cite in "Doc, reports". |
@sauzher thank you! :) Could you provide me with the full trace and maybe add a pointer to the code in c.solr/p.restapi that raises that warning? I am happy to help with this but I am rather busy these days... |
It's a warning, so I've no a real traceback to provide but this: Here it is the call done by c.solr:
and here it is where the warning is fired by plone.restapi: A little analysis, HTH Now the search process still works, because the SearchableText value is always of type of a simple string and it remains unaltered in the query dict passing throught to the @tisto You're very welcome :) |
I partially solved adding a fake index to the catalog
In this (dirty) way, the index is kept free of data, and the restapi is pleased to find an index with that name before committing the search. |
Perpahs plone/plone.restapi#1087 fixes this #193 too... |
When using collective.solr 5.0.3 it is safe, as suggested, to remove SearchableText from portal_catalog and free up a lot of memory footprint.
With collective.solr 6.0a2 (as well as master branch), every search logs:
WARNING plone.restapi.search.query No such index: 'SearchableText
The text was updated successfully, but these errors were encountered: