Singolar and plural

Ivory Search Forums Support Singolar and plural

Viewing 5 reply threads

You must be logged in to create new topic or reply to the topic.

  • Author
    Posts
    • #12237
      bp.designeering@gmail.com
      Participant
      • Topics: 2
      • Replies: 4

      in the Italian language, the last letter of a word identifies the singular or plural. (example: MelA is singular; MelE is plural).

      I would like to know if possible, with your search plugin, to exclude the last letter to allow the user to do a unique search for singular and plural (eg “Mel” and the result is both MelA and MelE)

      Thankyou

    • #12239
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      I hope you are well today and thank you for your question.

      Yes, you can achieve this by configuring the search form using any of the Fuzzy Matching options as shown in the attached screenshot.

      Best regards,
      Ivory Search Support

      Attachments:
      You must be logged in to view attached files.
    • #12255
      bp.designeering@gmail.com
      Participant
      • Topics: 2
      • Replies: 4

      Thank you for the answer!

      Just for information: online I saw some strategies that use presearch hooks, in order to split the search word and change the last 2 or 3 letters. Is it something possible also with Ivory?

    • #12268
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      If you can achieve this using the plugin search option as described above then why do you need a hook to achieve it?

    • #12269
      bp.designeering@gmail.com
      Participant
      • Topics: 2
      • Replies: 4

      Because the fuzzy method has the drawback to be too generic. I mean , it includes words that the customer doesn’t want : example -> word MARGARINA, the user search for GARINA which is another word to be matched , results include also MARGARINA that shouldn’t be included.
      The splitting is a more specific feature in terms of plural and singular problem.

      Thankyou for the support

    • #12270
      Ivory Search
      Keymaster
      • Topics: 0
      • Replies: 1,735

      You can use plugin hooks ‘is_posts_search’ and ‘is_pre_get_posts’ as declared in the below plugin file.

      https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php

Viewing 5 reply threads

You must be logged in to create new topic or reply to the topic.