Search results for queries with multiple words

  • snfpaper
    Participant
    4 years, 3 months ago #16794

    On our site, we have several PDFs being indexed. This may be an incredibly basic question, but we cannot seem to figure out how to configure the search results so that BOTH words in a search query must be in the PDF to show in the search results.

    For example, if I searched the name Dan Volitich, we want papers that have that full phrase, not just either Dan or Volitich, which is how the search currently behaves. Is there a setting within WPSOLR somewhere that ensures this?

    Site URL: https://www.snfpaper.org

    snfpaper
    Participant
    4 years, 2 months ago #17500

    Have not yet received a reply…Please advise. How do we ensure AND logic rather than OR logic in the search results?

    wpsolr
    Keymaster
    4 years, 2 months ago #17501

    Sorry, I missed your request.

    By default, WPSOLR uses the ‘AND’ operator.

    snfpaper
    Participant
    4 years, 2 months ago #17502

    That doesn’t seem to be the default on our website (see link in original request). When multiple terms are included in a single search, it appears to be using OR logic.

    wpsolr
    Keymaster
    4 years, 2 months ago #17503

    Did you select other options in screen 2.1, like “fuzzy” or “partial matching”?

    snfpaper
    Participant
    4 years, 2 months ago #17504

    Neither of those options are selected.

    wpsolr
    Keymaster
    4 years, 2 months ago #17505

    No boosts either?

    Can you try to execute you query in the Solr admin, and see what happens?

    snfpaper
    Participant
    4 years, 2 months ago #17506

    There are boosts listed (type, author, title, and tags), but the checkbox at the top of that page to activate them is not checked.

    Also, this may be a silly question, but how do I execute a query in the Solr admin?

    wpsolr
    Keymaster
    4 years, 2 months ago #17507

    Here is a screenshot of the Solr admin:
    Image wpsolr_solr_amin_query.png of

    snfpaper
    Participant
    4 years, 2 months ago #17510

    How do I get to this place?

    wpsolr
    Keymaster
    4 years, 2 months ago #17511

    localhost:8983/solr/#/ ?

    It depends where is your Solr server.

    snfpaper
    Participant
    4 years, 2 months ago #17512

    We are running solr on a Windows 2012R2 Server and our website is WordPress. How do we search on the admin dashboard? The screenshot appears too small and cannot make out any of the text.

    wpsolr
    Keymaster
    4 years, 2 months ago #17513

    Once you’re in your Solr dashboard:
    – select your index in the drop-down list
    – click on the left side “query” link
    – enter your keywords in the “q” text box

    snfpaper
    Participant
    4 years, 2 months ago #17514

    The search is working properly from the Solr admin dashboard. Is there a way we can ask the search to make sure the two words are close to each other? All the papers coming up with the name “Dan Volitich” have a Dan in it, and a Volitich in it, but not Dan Volitich together.

    wpsolr
    Keymaster
    4 years, 2 months ago #17515

    “Dan Volitich” should return first the documents with both words, then others.

    For both words separated by 4 words maximum:
    "Dan Volitich"~4

Viewing 15 posts - 1 through 15 (of 27 total)

You must be logged in to reply to this topic.