Get WPFTS Pro today with 25% discount!

Search Logic not Working


  • Hello,

    First, thanks for this plugin, after activating it our server usage dropped to 1/3 !

    But, I've detected that some searches still hangs the server. Those are searches that include common words (like "the" or "a" or "an") and multiple words. Looking at the log, I saw that it seems to search separately for each word, causing the issue. I've tried to activate the "AND" Search Logic, but it didn't made any difference, the log still seems to be searching by all words separately.

    Can I do something, maybe at code side, to prevent this?

    Edit 1: Note that, this behavior only occurs at Front End, using the site search, searching at backend doesn't cause issues. Note that, currently searches on backend aren't being logged, even though the option to replace the search in admin is active.... and I believe it's active, because the search there is really fast.

    Edit 2: Is there any further optimization for multiple post type? For example, even after the optimization the same search when limited to 1 single post type take 1.1 second, while looking for 4 different post types, take 9 seconds.

    Best


  • Hi @cantuaria

    Please tell me which version of the plugin do you use? Could you tell me if you have activated Deeper Search option and do you use an Index Optimizer (latest option on the Main Page).

    Thanks!

Suggested Topics

  • No valid search resulds, whats wrong?

    Bugs and Fixes
    10
    1 Votes
    10 Posts
    414 Views
    EpsilonAdminE

    Hi @stark

    Unfortunately, WPFTS does not work with PODS custom fields "from the box", so custom code exists somewhere. I think your developer used another way to add data to the search index.

    We need to ask him or alternatively, I could check your code myself, it should not be too long. In this case please send me admin access to your resource using a private message.

    Thanks.

  • There are no results in the search

    Bugs and Fixes
    6
    0 Votes
    6 Posts
    230 Views
    EpsilonAdminE

    This bug (definitely a bug!) was fixed in version 1.68.232
    We made "ident" field in the new wpftsi_irules table shorter (limited from 255 to 130) to avoid VARCHAR index length overflow.

    Thanks, @lostconcerts !

  • Number of search results

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    1k Views
    W

    i feel stupid now...YES! It works...

  • Sorting of Search Results

    Bugs and Fixes
    5
    0 Votes
    5 Posts
    1k Views
    N

    We have over 1,000 pdf documents on our website, and the most important is our Journal, with 238 editions at present. As an example, a couple of issues of our Journal are here, but they are all similar in structure:
    https://rchs.org.uk/wp-content/uploads/2020/02/Journal-100-Nov-1975.pdf
    https://rchs.org.uk/wp-content/uploads/2020/02/Journal-001-Jan-1955.pdf
    You will see that at the bottom of the second page of Journal 100 is a table of contents for the issue and, if the pdf is saved and then opened in Acrobat Reader, there is an equivalent set of bookmarks. It would help if a search term appearing in the article title (as listed in the table of contents) was given a higher weighting than one in the text of the document, but quite often the term will only occur in the text, and not in the title at all.
    Ideally, we would like the weighting to be based upon articles, but weightings based upon the the whole Journal is acceptable. This is because the articles tend to be on unrelated topics within a Journal, so there is probably little difference between the number of instances of a specific search term within an article, and within its parent document.
    I think it would help me if you could explain, in non-technical terms, how the four weightings operate with WPFTS. I've looked at the TFIDF article on Wikipedia, and understand the basics, but the majority of the article is too technical for me. Perhaps this information could also be added to the WPFTS documentation?
    As a related issue, could WPFTS open the document listed in the search results at the first article page where the search term is found? I realise it might go to the article title instead, and if so that wouldn't really help much.

  • 1 Votes
    2 Posts
    823 Views
    EpsilonAdminE

    Hi, Vasiliki

    Thank you for the question!

    Yes, initially WPFTS Pro was only able to search within files that are included in WP Media Library. We are developing an addon currently which will enable search by any file or file directory.

    ETA of the test version is 25 Apr 2020.

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors