@EpsilonAdmin Will do.
Posts
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin Wow, still didn't work. I even deleted the astra theme's functions.php file from the server, refreshed the browser (it blew up, as expected), then uploaded the modified functions.php file. I did all this to make sure there was no cache issue. Still doesn't work. Real bizarre.
Would it help if I sent you login credentials and ftp credentials via email?
-
RE: How to implement FullTextSearch on a page?
@sanfordandson I know it's a cludge, but could you strip out all occurrences of "https//"? That would make the url correct.
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin 1.7.2 (current version)
-
RE: How to implement FullTextSearch on a page?
@sanfordandson Could there be something in the .htaccess file that is causing this?
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin I replaced esc_url with htmlspecialchars, but that didn't fix the issue. Very strange, indeed.
You can see when you mouseover the Download link that the url is incorrect, right? But the link on the title is correct!
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin Attached is a screen cap of one of the documents. The full link for this document is:
https://staging4.hamlinny.org/documents/assessors-office/assessment-rolls/2019/2019-Final-Roll.pdf
If you go to my documents page here:
[https://staging4.hamlinny.org/document-center/](link url)
and search for the word "Sewer" (without the quotes), this document will be the first one in the search results. Note that the link for the title is correct, while the URL for the Download link is incorrect.
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin This works great except for one small error in the constructed download link. For example, here is the constructed link for one of the search results:
The second occurrence of the "https//" is unnecessary.
I tried to fix this, but php is not my strong point.
Larry
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin Thank you!
On the search results page, when clicking on the titles to open a document, is there a way to make that open in a new browser tab, rather than in the same tab?
Thanks again.
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin Ok, so after my last reply, I found this post about the Astra theme not showing Smart excerpts:
So I implemented the solution mentioned in that post, and it helped a lot (but still missing SOME information). To see the current status, go to my Document Search page here:
https://staging4.hamlinny.org/document-center/
and enter "Program Notice" in the search field (without the quotes), and click the Search button. You will now see this search results page:
[https://staging4.hamlinny.org/?wpfts_wdgt=preset_dlp&s=Program+Notice](link url)
You can see that now there is an excerpt shown, along with highlighted references to the search term, and also a Score.
However, is there any way to also get the Article Author/Date and a Download link, like that shown on the previously mentioned site? Shown here:
https://searchannavonreitz.americanstatenationals.org/?s=consent&numberposts=30&results_hide_fields=
I know that the document names that show up on the search results page are hyperlinked to the document, but it would still be nice to get the Download link to appear, like on the previously mentioned site, and also the document date. If that is not possible, is it at least possible to get the hyperlinked document title to open in a new tab?
One last thing: If you enter nothing in the search field, then click the Search button, nothing should happen. Instead, it takes you to the search results page and shows many pages of document titles. Can this be fixed?
Thank you so much!
-
RE: How to implement FullTextSearch on a page?
@EpsilonAdmin Ok, I see all the widgets when I click the [+], including your WPFTS::Live Search widget!
I will not be using the WPFTS widget in the sidebar for now, but I will definitely remember it in the future.
As for the theme, I am using the Astra (free) theme. The Quick Links Sidebar that you see in the image attachment to my last post is the sidebar that appears on all the pages, including the post archive page. You can see the archive page here:
[https://staging4.hamlinny.org/news/](link url)
I am pretty sure I am using the Astra theme's default search results page, because I don't remember specifying otherwise.
I will search the forum for the Astra Theme to see if I can find any more info. In the meantime, if you can take a look at the Astra theme and see if there is any way to make it display the additional information on the search results page, that would be great!
FYI, I edited one of the existing DLP documents, and the Author field at the bottom was already specified. I also added an author (the same author) on the right hand side in the DLP edit screen, and also added an Excerpt. However, after saving everything and clearing cache, and re-searching, still only the document title shows up on the search results page.
I am attaching the edit screen for the DLP document, so you can see what I am talking about.
I am also attaching a closeup of the Astra Settings section of the DLP edit screen, where you can select the type of sidebar, but I don't know if that is relevant to my problem or not.
I can provide login credentials to the staging site via email, if you think it would help your investigation. Just let me know.
I appreciate all your help!
-
RE: How to implement FullTextSearch on a page?
Well, when I navigate to Appearance > Widgets, I don't see the WPFTS Live Search widget (see attached image).
However, I was able to successfully use the shortcode information you provided to add a search widget to a page. You can see it here:
https://staging4.hamlinny.org/document-center/
Ignore the Search field on the right ... that belongs to the Document Library Pro plugin, and will be going away soon.
So, enter "Program Notice" in the WPFTS search field and click the Search button. You will see 25 pages of results, however, the results only show the PDF filenames. Is there any way to get search results like you see here:
[https://searchannavonreitz.americanstatenationals.org/?s=consent&numberposts=30&results_hide_fields=](link url)
Those search results include:
Filename
Date/Author
Excerpt showing highlighted occurrences of the search term
Score
Download linkHow do I get my search results to include all that information?
Also, am I forced to use the archive search results page to display the results? While the archive sidebar is required on the archive page, I would really rather NOT see it on my WPFTS search results page.
Thank you so much ... I am getting very close!Larry
-
RE: How to implement FullTextSearch on a page?
@epsilonadmin Yes, I saw your email, and I am following the instructions right now on a new staging site that has all 1700+ documents stored externally on the server. I sent you an email asking another question, but I will repeat here for others:
Can you please point me to instructions on how to add the WPFTS::Live Search widget to a page?
I want to implement something just like this:
[https://searchannavonreitz.americanstatenationals.org/](link url)
If you enter the word "consent" in the search field (without the quotes), then click the Find button, you will be redirected to a search results page showing all the PDF files that contain the search term.
So, if you could please direct me to some documentation on how to implement the widget on a page, I would be grateful!
Regards,
Larry
-
How to implement FullTextSearch on a page?
Re: Sorry no posts match your criteria
Hello all, I am brand new to this forum. I have imported 1700+ PDF attachments (into the WordPress Media Library), and I need to offer a way for site visitors to search those documents for specific text, terms, etc. I have installed the WPFTS Pro trial, so that I can test it before purchase.
Using the Test Search under the plugin's Sandbox area, I was able to verify that the search is working perfectly. However, I need to implement a Search feature for web visitors (very similar to the one on [https://searchannavonreitz.americanstatenationals.org/](link url). When you enter your search term on that page, then click the Find button, you get redirected to a search results page that is a list of PDF files that the search term(s) are found in.
I need to default the Post Type to "attachment", and the Post Status to "*(Any)", just like on the Test Search. However, I do not want to show any of these Additional Options that are shown on the Test Search to the users. It should look just like the search that was implemented in the referenced post. I need to restrict the search to attachments, because I don't want any results returned other than those from the 1700+ attached PDF files.
I am using Elementor page builder for the site, so implementing this with a shortcode would be ideal, but I am open to any suggestion. This is a FANTASTIC plugin, and I am ready to purchase if I can get some help on how to implement it on a search page.
Any help is appreciated.
Larry