-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unnecessary SearchableText metadata #232
Comments
@mauritsvanrees if an upgrade step is make to remove this metadata, is it necessary to do a clear and rebuild in the catalog? |
Yes. Or you can do something like this (not tried):
This recatalogs the item, but only reindexes a single, cheap index: the id index (assuming this exists). Depending on which Products.ZCatalog version this is, you may be able to use |
Thanks! |
I don't think that's unnecessary. |
@hvelarde for body text:
we have the SearchableText metadata:
In what situation can we use this metadata? Doesn't |
@hvelarde sorry. In comment above I had put the SearchableText index. Now I fix it for metadata. Anyway, still find it unnecessary. |
IIRC, this is necessary to include all metadata of an instance of this content type in the index. check the code and you'll find the subtitle, the byline, the location and many other attributes. |
@hvelarde I think you're mixed. I'm talking about the SearchableText metadata (column) and not of SearchableText index. The SearchableText index:
Is important and must be maintained. It really serves to group several fields in a single index. But the SearchableText metadata (column):
Is not necessary. For exemple: >>> from plone import api
>>> results = api.content.find(SearchableText='Text') # This uses the SearchableText index and is important
>>> brain = results[0]
>>> brain.SearchableText # This is the SearchableText metadata and is unnecessary. Where will we use the string below?
u'title-of-nitf Title of nitf Description of nitf Content of nitf \r\n test content \r\n text strong It is possible to have the SearchableText index without having the SearchableText metadata. I removed the SearchableText metadata and run the tests. All tests passed. |
To make review easier after running since it can modify thousands of objects. (complements #232)
To make review easier after running since it can modify thousands of objects. (complements #232)
To make review easier after running since it can modify thousands of objects. (complements #232)
To make review easier after running since it can modify thousands of objects. Available at Undo tab in / in the ZMI. (complements #232)
To make review easier after running since it can modify thousands of objects. Available at Undo tab in / in the ZMI. (complements #232)
There is an unnecessary
SearchableText
metadata:collective.nitf/src/collective/nitf/profiles/default/catalog.xml
Line 10 in 787d02b
This probably makes the catalog grow unnecessarily.
The text was updated successfully, but these errors were encountered: