Thanks for reaching out to Algolia and for helping the community by posting your question to discourse!
From your question, It sounds like you might be looking at two things: (1) excluding the
body attribute from being searchable; or, in the alternative, (2) excluding a word from the search query.
(1) Excluding the body attribute: By default, Algolia sets all attributes as searchable, if you do not define a specific list of “searchable attributes”.
If you do not think the
body should be searchable at any point, then at the outset define your list of
searchableAttributes and exclude
body from that list. Here are links to the concept and documentation.
If you do think that
body should be searchable sometimes, but just not in this instance, you can use
restrictSearchableAttributes attributes and exclude
body from the list. Here is a link to the concept and to the documentation.
(2) Excluding a keyword: You can use
queryRules and create rule that excludes a typed word from the search, even if it is typed. Here is a link to the concept and an explanation on how to implement using the API or dashboard.
I hope this answered your question. If I misunderstood, please do not hesitate to post again with clarification or even an example of what you were looking to achieve.