Get WPFTS Pro today with 25% discount!

WPFTS does not index files NOT uploaded with Media Library


  • I use Simple File List Pro from Mitchel Bennis. Files are uploaded to a directory structure in wp-content/uploads/simple-file-list.
    In the wp-content/uploads/simple-file-list there are folders, used as categories. For Example wp-content/uploads/simple-file-list/newsletters.
    Newsletters are PDFs in that directory.

    But when i do a search on a certain word in 1 of the newsletters, the PDF does not show up in search results.
    When i simply upload it to the wp-content/uploads/ with the Media manager from Wordpress, the newsletters does show up in search results.

    Am i right in thinking that WPFTS does not index files NOT uploaded with Media Library?
    Can i make WPFTS index the /uploads/simple-file-list/ ?

    Your help will be appreciated


  • Hi @Webwerkplaats

    The main problem is that WPFTS basically works with database entries in the wp_posts table, not with physical files. The files are the source of the search text only at the time of the indexing procedure, and thereafter the index only references the rows in the database table. It works this way because WPFTS is essentially an extension of the standard WordPress function, WP_Query, which searches wp_posts records.

    What I might suggest in your case?

    1. Since Simple File List Pro does not save information to WP Media Library, we need another plugin that will populate wp_posts with information about each file. In this case, with a small addon, the WPFTS plugin can index each file and display it in the search results (every file).

    2. Another option is to index files that are embedded in the page using the [eeFSL] shotcode. But in this case it will be impossible to highlight a single file in the search results - instead a link to the page itself, where the list of files is embedded, will be displayed.

    I need to understand exactly what you need in order to give further instructions or advice. Please let me know.


  • @EpsilonAdmin I find myself also in this exact situation.
    A small web site that is primarily about displaying a hierarchy of folders that contain mainly PDFs - using Simple File List Pro
    I have only 3 top level pages. Everything else is generated auto-magically by SFLP when it scans the folders into which I have uploaded files manually (via CyberDuck)
    using the eeFSL shortcode won't help if it simply results in one of those 3 pages being returned in search results.

    Screenshot attached that hopefully gives an idea of what I have.
    SJW file list example.jpg

    So, can WPFTS be enhanced to:
    a) be pointed at a top level folder & told to index all files within that hierarchy; or
    b) leverage the index that is created by SFLP

    If getting this done would be helped by having access to my site feel free to let me know.


  • Hi @Graham

    Thanks for your question. Let me ask you one more clarifying question before I can offer a solution.

    You plan to use the widget for general site-wide search, right? If so, and in this case, if the information is found in one of these files that are listed in your example, then what exactly should be displayed on the search results page? And in this case, where should the user go when he clicks on the title of the search results element?


  • @EpsilonAdmin Thanks for quick response and question.
    Yes, my hope was to use the standard WP search widget - but I haven't explored any other option. If there's a better way I'm happy to get guidance 😀

    My site has been recently re-created in WordPress after quite a few years of running under Joomla and that Joomla installation had a free plugin called jiFiles (?) which did the document scanning/indexing. A standard search, scoped on file name or a string from within file content, would pull up a list of file names each hyperlinked to the file itself to easily click on for in-browser viewing (or possibly downloading).

    I appreciate that there are other WordPress plugins that offer a full document management system but they have a much larger feature set than I need and are also majorly expensive for a small non-profit community web site.

Suggested Topics

  • 0 Votes
    1 Posts
    372 Views
    No one has replied
  • metadata filter in WPFTS widget

    Recipes and Known Solutions
    2
    0 Votes
    2 Posts
    568 Views
    EpsilonAdminE

    Hi @pfb6736

    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.

    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.

    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?

    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.

  • Searching data attached to image files

    Recipes and Known Solutions
    2
    1 Votes
    2 Posts
    990 Views
    EpsilonAdminE

    You can upload images to the WP Media Library as well and add the image description to the image. WPFTS Pro can search these images by the description then.

    Alternatively, you can create a special post type and upload images as "Featured Image" to each of these posts, and put the description and special information to the post_content or additional meta field(s) - depending on the number of data fields and type of information.

    In both cases, WPFTS Pro will help you with the search.

  • 0 Votes
    1 Posts
    677 Views
    No one has replied
  • 0 Votes
    1 Posts
    760 Views
    No one has replied

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