Navigation

    WPFTS Pro Main Site

    WPFTS Community Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    1. Home
    2. EpsilonAdmin
    Get WPFTS Pro today with 25% discount!
    • Profile
    • Following 0
    • Followers 0
    • Topics 31
    • Posts 131
    • Best 3
    • Groups 1

    EpsilonAdmin

    @EpsilonAdmin

    Hello all! I am a main developer and support of the Wordpress Fulltext Search plugin. I will be glad to help you if you have any questions or issues with the plugin. Just let me know!

    3
    Reputation
    91
    Profile views
    131
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website e-wm.org

    EpsilonAdmin Unfollow Follow
    administrators

    Best posts made by EpsilonAdmin

    • RE: Filter and sort result list

      Hi @ilocimwca

      It's simple to do with this addon
      https://fulltextsearch.org/wpfts-addon-files-only-1.0.1.zip

      It contains some code to limit post_type to 'attachment' only:

      add_action('pre_get_posts', function(&$wpq)
      {
      	if ($wpq->is_search && $wpq->is_main_query()) {
      		$wpq->set('post_type', array('attachment'));
      		$wpq->set('post_status', array('inherit'));
      	}
      });
      

      Pretty simple. If you want to set up your own post_types, just modify this code. You can read about full WP_Query() parameters at the Wordpress official documentation.

      posted in Frequently Asked Questions
      EpsilonAdmin
      EpsilonAdmin
    • RE: metadata filter in WPFTS widget

      Hi @pfb6736

      1. Yes, you can do this via CSS, either by adding a new rule to your Theme custom CSS block, or you can use WPFTS Settings / Search & Output / Display / Smart Excerpts CSS editor block.
        I hope it's .widget.widget-search rule, you can set 'width: 100%' to extend widget's width to all available room.

      2. The plugin is growing, but we have not yet a powerful system to make customized search widgets. What I can propose to you is (depending on your PHP/WP knowledge): there is a file /includes/widgets/wpfts_widget.class.php which is actually a native WP search widget with some changes for Live Search functionality.
        I would recommend you to copy this file to your child theme and create your own widget (by adding a select input to existing code). In case you think your knowledge of PHP is not that good, I can gladly help you, but you need to explain to me what exactly you need.

      3. Yes, it's possible via the small code addition. Do you want to show a path to the file instead of the file title? Or it should be an additional line in the search result item? Do you think showing a local path to the file is OKAY and maybe it's better to show Category instead?

      4. As I can see they are highlighted (bolded) but you can change this again in the Smart Excerpts CSS block. For example, this rule will make found words RED and YELLOW highlighted.

      .wpfts-result-item .wpfts-smart-excerpt b {	
      	/* Excerpt text */
      	color: red;
      	background-color: #ff3;
      }
      

      Thanks.

      posted in Recipes and Known Solutions
      EpsilonAdmin
      EpsilonAdmin
    • Is it possible to make 2 different searches on the same website?

      Yes, actually you can make more than one search, the number of search filters is not limited.

      Each search filter can have it's own preset, which can be selected in the "WPFTS :: Live Search" widget option and thus will be automatically activated when someone makes a search with this specific widget instance.

      Let me explain to you in two words how to do this.

      Imagine, you want to have 2 different searches on your website: the main search (which searches for posts and pages only) and another search that will search for PDF files only.

      Okay, let's say we already have the main search configured, we only need to disable the "Search in Files" option (available in WPFTS Settings > Search & Output > Filter).

      Let's create another search filter that will search in PDF files only.

      add_action ('init', function()
      {
      	global $wpfts_core;
      
      	if ((!is_object($wpfts_core)) || (!$wpfts_core)) {
      		return;
      	}
      	
      	if (method_exists($wpfts_core, 'AddWidgetPreset')) {
      
      		// Repeat this block as much as you need
      		$wpfts_core->AddWidgetPreset('pdfonly', array(	// 'pdfonly' is the ID of your preset
      			'title' => 'PDF Only',		// This is a title of your preset (shown in WPFTS :: Live Search selector)
      			'filter' => 'pdfonly',		// This is the ID or the filter (can be the same as the preset name)
      			'results_url' => '/',		// The results page URL, it should be existing URL on your website
      			'autocomplete_mode' => 1,	// Should autosuggestion be ON for this widget?
      		));
      
      		// Put another preset here if you need that
      		// ...
      	}
      }, 255);
      

      Not hard, right? But that's not all. Now we need to force some WP_Query() parameters in case someone uses this preset.

      add_action('wpfts_pre_get_posts', function(&$wpq, $wdata)
      {
      	// The filter processor for the custom widget
      	if ($wdata['id'] == 'pdfonly') {	// Use your filter name here (not preset name, however they can be the same)
      		// Let's set up specific parameters for this filter
      		// Please refer to WP_Query() official documentation for possible parameters
                      // The WPFTS-specific parameters also will work here, check this link for them:
      		// https://fulltextsearch.org/docs/wpfts-api-description/extended-wp_query/
      
      		$wpq->set('post_type', 'attachment');
      		$wpq->set('post_status',  array('inherit'));
      	}
      
      	// Repeat the filter processor block for each your widget
      	// ...
      
      }, 20, 2);
      

      Here is it. You need to place this code in the functions.php file of your current theme.

      When it's done, you can place the WPFTS :: Live Search widget to the specific page and then select your preset ("PDF Only" in our case) from the select box.

      posted in Frequently Asked Questions
      EpsilonAdmin
      EpsilonAdmin

    Latest posts made by EpsilonAdmin

    • RE: [Solved] Avada theme excerpt do not show

      There is a simpler way for fix the Avada Theme search results issue in case you're using Avada Theme 7.0+.

      In this version the authors enabled to override the output of search results by the hook. So using the simple addon become possible.

      Just download it and install. And enjoy the Smart Excerpts 🙂

      wpfts-addon-avada-theme.zip

      posted in Recipes and Known Solutions
      EpsilonAdmin
      EpsilonAdmin
    • RE: How long should indexing take?

      @paulf Hi, yes, please. You can put me a message directly to my email [hidden] also

      posted in General Discussion
      EpsilonAdmin
      EpsilonAdmin
    • RE: How long should indexing take?

      @paulf What is DM?

      Please write me at https://fulltextsearch.org Live Chat so we can communicate faster.

      Thanks!

      posted in General Discussion
      EpsilonAdmin
      EpsilonAdmin
    • RE: How long should indexing take?

      Hi @paulf

      Sometimes indexing process can be broken internally by 3rd-party plugins or theme code or custom code that makes internal redirects on shortcodes or something. It's hard to say which thing is blocking indexing.

      However, we always can solve this via the short TeamViewer session. It is possible?

      posted in General Discussion
      EpsilonAdmin
      EpsilonAdmin
    • RE: How long should indexing take?

      Hi @paulf

      The problem is, the WP script should call the URL on the same domain to run the cron job planner at https://youdomain.com/wp-cron.php

      When the website is running on external hosting, it works fine usually.

      However, for local installations (mostly dev environments), there is a problem. Because you have no actual domain, you simulate it via the "hosts" file.

      This file is usually located in %WINDIR%/system32/drivers/etc/hosts on Windows or /etc/hosts on Linux-based OS.

      While OS and browser can read this file and execute fake domains from there, Apache and PHP often have a problem with it. For example, this file "hosts" can be marked as "read-only by admin" or something else so Apache and PHP can not read it.

      So, basically, you have to enable read access to the hosts file for "all users" and it should help.

      If not - please contact me again, we can have a short TeamViewer session so I can check what exactly goes wrong on your installation.

      Thanks.

      posted in General Discussion
      EpsilonAdmin
      EpsilonAdmin
    • RE: How long should indexing take?

      Hi @PaulF

      It should be indexed in minutes normally.

      If you have some strange delays, please do this:

      1. Try to open WP Admin on the WPFTS Settings page for some time and notice if the number of indexed documents increases. If not, it should be a bug in the code that appears in error.log - please check this file if there are some error messages.

      2. Try to follow this recipe to fix the DNS problem (normally indexing should go transparently without WP admin open).

      Let me know what you found, I also could help you via the short TeamViewer session.

      Thanks!

      posted in General Discussion
      EpsilonAdmin
      EpsilonAdmin
    • RE: Custom Directory

      Hi @rgm_b

      Currently, the plugin works with the database, not with the physical location of the files. Actually, it does not matter where the file is stored - it will index all the files that are in WP Media Library.

      So the best way to index the folder with files - just to upload these files into the WP Media Library. Is it a problem to do that with your app?

      posted in General Discussion
      EpsilonAdmin
      EpsilonAdmin
    • RE: metadata filter in WPFTS widget

      Hi @pfb6736

      1. Yes, you can do this via CSS, either by adding a new rule to your Theme custom CSS block, or you can use WPFTS Settings / Search & Output / Display / Smart Excerpts CSS editor block.
        I hope it's .widget.widget-search rule, you can set 'width: 100%' to extend widget's width to all available room.

      2. The plugin is growing, but we have not yet a powerful system to make customized search widgets. What I can propose to you is (depending on your PHP/WP knowledge): there is a file /includes/widgets/wpfts_widget.class.php which is actually a native WP search widget with some changes for Live Search functionality.
        I would recommend you to copy this file to your child theme and create your own widget (by adding a select input to existing code). In case you think your knowledge of PHP is not that good, I can gladly help you, but you need to explain to me what exactly you need.

      3. Yes, it's possible via the small code addition. Do you want to show a path to the file instead of the file title? Or it should be an additional line in the search result item? Do you think showing a local path to the file is OKAY and maybe it's better to show Category instead?

      4. As I can see they are highlighted (bolded) but you can change this again in the Smart Excerpts CSS block. For example, this rule will make found words RED and YELLOW highlighted.

      .wpfts-result-item .wpfts-smart-excerpt b {	
      	/* Excerpt text */
      	color: red;
      	background-color: #ff3;
      }
      

      Thanks.

      posted in Recipes and Known Solutions
      EpsilonAdmin
      EpsilonAdmin
    • RE: PDFs not appearing in search result

      Hi @blixhavn

      Do you remember which plugins you've installed recently? Some of them may conflict with WPFTS Pro, especially when making a search at the front end. Please try to disable those plugins temporarily.

      If it does not help, let's connect with TeamViewer so I can solve this issue faster (write me a private message or via Live Chat at the main page).

      posted in Bugs and Fixes
      EpsilonAdmin
      EpsilonAdmin
    • RE: Multi word search showing an empty screen

      Hi @wordherd

      It looks like an out-of-memory situation. Sometimes WPFTS Pro requires a bit more memory to work than usual, so I would recommend switching your memory_limit option (in php.ini) to 512M at least.

      Please try this and let me know if it helped or not. Thanks!

      posted in Bugs and Fixes
      EpsilonAdmin
      EpsilonAdmin