-
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
[Question] How to index custom NamedBlobFile? #240
Comments
I found out
How can I add a handler for these kind of file fields so it does the same thing as the |
I now understand the thing with the |
Hey @NicolasGoeddel !
To make sure that File would be indexed with the BinaryAdder so we won't have a field like Is the best solution to declare an adapter in the configure.zcml file of collective solr ?
|
After declaring in configure.zcml the piece of code mentioned in my previous post, looks like I was able to get back the desired result ! |
Hi,
what do I have to do when I created my own content schema, derived from
zope.supermodel.model.Schema
, containing aplone.namedfile.field.NamedBlobField
which I want to index? In this case the file will be a PDF file. Because the field name is simplypdf
I added the lineto
schema.xml
and restarted Solr. I thought that's it and whenever I change the content of the field the PDF in that field will be indexed. But it seems I am wrong here and do not really understand the relationship betweenschema.xml
and the content fields of Plone, do I?Here is the simplified schema where I want the file in
pdf
to be globally searchable.Thank you!
I am using Plone 5.2-rc2, Python 3.6, collection.solr 8.0.0a1
The text was updated successfully, but these errors were encountered: