WordPress.org

Ready to get started?Download WordPress

Forums

Swiftype Search
[resolved] Search for two or more terms (3 posts)

  1. tizz
    Member
    Posted 1 year ago #

    Great plugin, thank you.
    Just one problem. Having a music blog I have hundreds of musicians' names in the index, and for the most part people search them obviously for first and second name together.
    The problem is: in search results page I have outputs for first and second name both separately, not only for the full name. For example, I have only two posts that refer to a certain, plain "Charlie Morris", but in search results page there are all of "Charlie" and all of "Morris", and results who includes those names too (e.g. "Morrison").
    I know I can customize it in dashboard and I've done it, but I can't do same thing for all of them, I can't even know or remember all of them.
    The search box dropdown results itself are good, limited to the right expression. The problem is only when someone opens search results page by enter key.
    I have to remove part of the page results template (get_search_query() ?), or there's some code to fix so it opens with the same results as dropdown? Is this plugin made to work only in the same page?

    http://wordpress.org/extend/plugins/swiftype-search/

  2. tizz
    Member
    Posted 1 year ago #

    No news? I'd like very much to know how your (*) search box works, I mean if one click enter.
    How can I do to prevent the user from opening the search page, or show the same dropdown search results in that page?

    (*) Anyone who use this good plugin

  3. qhoxie
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    Autocomplete results differ from full search results because they only take high-value text into consideration and do prefix matches rather than full term. For your engine, this means things like page titles will be used in the autocomplete searches, whereas the full post content will not. For this reason, autocomplete searches usually have fewer results than a full-text search, which considers all content.

    If I understand your question correctly, it would be possible to prevent the search form from submitting using JavaScript, but without know the exact setup of your site I can't make specific suggestions.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic