I was wondering which of the following methods is faster and/or more efficient in terms of resource usage, given the following scenario:
You have a document with the following fields:
- Title (text)
- Description (text)
- Image (text - url to image source, or alternatively, could be a HTML field)
The Search API should search over the Title and Description fields, but NOT over the Image field. The Image field is only there for the template to be able to have a image source to render onto the search results page.
So the questions are:
- Is this approach correct?
- Does adding fields that are not really used for searching add overweight and consume extra resources?
- Is there a way of telling Search API to NOT search over a field?
- Would it be faster to use Search API to only retrieve the doc_ids and then get from datastore using those doc_ids?
Thanks!