简体   繁体   中英

Searching custom types in plone

I've been tasked with setting up a community in plone. I have some custom content types created with dexterity. The problem is that I can't figure out how to search all of the fields. Under site setup -> search, I have all the relevant options selected, but I seem to be missing something (I hope it isn't too obvious).

A simplified example of the problem:

I have a custom data type "recipe", which has default fields "title" and "description" along with a text box "ingredients". I want to be able to search, for example, all recipes that contain bacon. I can't figure out how to do this. Currently only title and description are searchable.

You need to index the fields you want to search on and then query the catalog on those index values.

Check out "Catalog indexing strategies", Section 6.12 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM