Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Paulina H. (a11n)

    (@pehaa)

    Hey Rolf!

    is it possible to limit search results based on titles only, so basically ignoring the content?

    I have reached out to our developers with this question. As soon as we’ve heard back from them we’ll be in touch with an update.

    In the meantime, could you clarify if you are trying to modify the search query or you would only like to index your post titles?

    Are there any particular reasons you want to ignore the post content?

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi Paulina, the site owner wishes to use Jetpack Search to search through a custom post type. The results should be based on matches with the titles only, not on anything in the post content.

    The reason is that currently (specially when searched are phrased as a sentence or question) the results are too many and too wide. He hopes results will be more specific if only the titles are taken into account.

    I suppose that would mean we’d need to limit the indexation to only titles, but if it could eb done by modifying the search query (an extra filter?) that would be great ??

    Daniel

    (@ihenetudan)

    Hi @ravanh,

    Would you be able to provide the site URL and an actual search query that the site owner is unhappy with and why? That would be helpful.

    With that info, we should be able to take a look and try to understand why the results aren’t what he’d like. We’re not sure just indexing the titles would actually do what he’s hoping it would do.

    Having a specific example query and the site URL should help us understand what the root problem is.

    Thanks.

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi @ihenetudan although the site is still under development, you can see a search test page on https://youranswer.fr/test/ where if you type in comment faire un test? the results are (in the owners view) too broad. It appears some results are even based just on the word “un” (which means “a” in French).

    You might be right that reducing the index to titles only might not have the better results. Maybe the search algorithm needs some adjustment like filter out French “article” words?

    Plugin Support Stef (a11n)

    (@erania-pinnera)

    Hi there, @ravanh,

    Thanks for bearing with us with that and sorry for the delay! We have asked our developers to weigh on this one, and we’re waiting for their reply. We’ll follow-up with you shortly ??

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hi @ravanh,

    Thanks for bearing with us. We have re-surfaced the issue with our developers and here is their response.

    You might be right that reducing the index to titles only might not have the better results. Maybe the search algorithm needs some adjustment like filter out French “article” words?

    This is not something that can be adjusted at the moment. In fact, we have recently started indexing article words or stopwords to enhance users’ overall search experience.

    We have detailed that in a post here: https://jetpack.com/blog/jetpack-search-improvements-helping-your-visitors-find-more-of-what-they-are-looking-for/

    We also do not have an option to only search post titles.

    Hope this helps clarify things : )

    Best,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search based on titles only?’ is closed to new replies.