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:
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.
Add button or menu link to search results
Hello, I have a site that has content in a button or menu item that links to an external URL. Is it possible to have this show up in the search results? Site uses Avada theme and buttons are part of the builder. If not, will adding a section with a title and short description within a page and turning on TXT in the Search and Output settings allow the content to show in search results?
Yes, WPFTS Pro can do this trick. I guess you have inserted the button from the Visual Builder library? In this case, the raw text view of the post content should show the shortcode of this button with the link to the file inside (in the "link" or "URL" attribute).
WPFTS Pro can handle such cases with an additional small PHP code addon, which I will provide to you.
Please copy the raw text of your post content here so I can create such an addon.
your post content
Hello! Thanks for the response. Here is the button shortcode with the URL:
[fusion_button link="https://www.chinobasinprogram.org/" text_transform="" title="" target="_blank" link_attributes="" alignment="" modal="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" color="default" button_gradient_top_color="" button_gradient_bottom_color="" button_gradient_top_color_hover="" button_gradient_bottom_color_hover="" accent_color="" accent_hover_color="" type="" bevel_color="" border_width="" border_radius="" border_color="" border_hover_color="" size="" stretch="default" icon="" icon_position="left" icon_divider="no" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset=""]Chino Basin Program[/fusion_button]
The theme is Avada using the Fusion Builder. Thanks!
Okay, thanks for the example. One more question: do you want this link to be shown inside the Smart Excerpt output or just below it? Are you using Smart Excerpts at all?
@epsilonadmin Hello! Yes, we're using Smart Excerpts and screenshot attached of the settings if you need it.
If possible, it'd be nice to have it inside to match the style of the others. All pages/post show the excerpt in the results and the PDF's just simply are a link. If it can function like the PDFs and just take the person to the external link, that'd be great.
Hi @EpsilonAdmin, I wanted to see when this code addon would be ready for use? Thanks!
First of all, to see attachment contents in Smart Excerpts with Avada theme you need to implement a small patch, which removes the incompatibility of Avada theme.
Please read more here