This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 38 total)
  • Author
    Posts
  • in reply to: Suggestion: Add search capabilities to these forums #35096
    nickchomey18nickchomey18
    Participant

    Thanks! Can I suggest that you add a search box to the top of each subforum? The attached screenshot shows that it is not present in subforums. Also add search settings to it rather than just the search form?

    Or, better yet, allow the sidebar widget to search the support forums as well? It is a bit confusing that there are two search boxes on some pages.

    nickchomey18nickchomey18
    Participant

    Thanks very much. That seems like it will work just fine! I’ll experiment with it and follow up if there’s anything in particular that I need help with.

    nickchomey18nickchomey18
    Participant

    After digging more into the BB search component search, it seems like it is pretty complicated with dozens of files and functions. I’m also not quite sure how intertwined it is with the rest of BB, so I am hesitant to make a duplicate/alternate version of it. Therefore, I think the first option would be ideal – try to use the BB search code as much as possible and just replace its query with ASP’s query and results.

    The filter mentioned in the previous reply only allows me to modify the results, and there doesn’t appear to be a way to prevent the (very inefficient, redundant) BB queries from being run to begin with.

    So, for now, I will just directly modify the BB Plugin code and then monitor future releases for changes to merge with these files.

    I have attached a file that contains the 3 relevant functions:

    1. bp_search_search_page_content() – gets called by a filter on the_content and checks if the current page is a search query and then calls the next function.

    2. prepare_search_page() – sets some args and then calls the main search function, generally just passing the search term along as the sole argument.

    3. do_search()
    – dynamically loops through about 15 different search helper files to generate sql queries which then get combined into $pre_search_query on line 182, and then the $results are generated on line 188.
    – It then generates groups and creates HTML for each group and result.

    I have confirmed that if I use “?s={phrase}&bp_search=1&view=content” as ASP’s Custom Redirect URL, it will initiate the first function above. So, it seems to me that all I need to do is delete/comment out between line 158 and 190 – the section that creates and runs the queries – and somehow pass the ASP results to this.

    So, two questions:

    1. Do you have a suggestion for another approach?
    2. If not, how can I pass the ASP results to the do_search () function?

    Thanks!

    in reply to: Grouping by Post, Content Type and Custom Groups #35048
    nickchomey18nickchomey18
    Participant

    Thank you. I’m not sure why I didn’t see that hook/documentation – it should serve my purposes. I’ll tinker with it for a while and let you know if I have any specific questions.

    in reply to: $s_options attributes? #35047
    nickchomey18nickchomey18
    Participant

    Oh wow. Yeah I found that file and thought it might be the one I was looking for, but it was far too daunting to consider tampering with it. Thanks for confirming that it is best left alone – I will investigate specific options if necessary and ask for help if it breaks anything. Still, it is interesting to look through to get a more comprehensive view of how expansive ASP is!

    nickchomey18nickchomey18
    Participant

    1. Thanks, I’ll just test it all out then.

    2. Thank you. Unfortunately Relevanssi only does this in their Pro version, and I don’t want to buy it just for this purpose, much less buy and return it.

    Would you please be able to point me to the internal ASP function that handles this, so that I can use it as a starting point?

    nickchomey18nickchomey18
    Participant

    I should also say that I am open to doing some custom coding for #2 if it seems like something that is feasible and you can guide me.

    in reply to: Create a searchable/filterable directory with ASP #34996
    nickchomey18nickchomey18
    Participant

    Ugh, silly that I didn’t see that. Thanks very much! Please close the ticket.

    in reply to: Create a searchable/filterable directory with ASP #34993
    nickchomey18nickchomey18
    Participant

    Thank you. I forgot to mention the problem I am having with this – when I click elsewhere on the page, the results disappear, as if they were set to Hover. Surely I am missing a setting somewhere?

    in reply to: This new plugin appears to be a rip-off of ASP #34935
    nickchomey18nickchomey18
    Participant

    Ok. Please close the ticket.

    in reply to: Integrating Apache Tika's text extraction with ASP's Index #34906
    nickchomey18nickchomey18
    Participant

    Great, I look forward to seeing what you come up with! Until then, I’ll use what I have set up. It works just fine for my needs. Feel free to close this ticket.

    in reply to: Integrating Apache Tika's text extraction with ASP's Index #34904
    nickchomey18nickchomey18
    Participant

    Relevanssi’s solution to this problem is to have their own server that runs Tika and the plugin sends files there and receives the text content back. I suppose you could set something similar up, but some people (like me) would prefer not to share the files for privacy reasons. https://www.relevanssi.com/knowledge-base/indexing-searching-pdfs-wordpress/

    SearchWP allows for Tika as well, but only if you have it set up via ssh (with limited instructions on how to do that).https://searchwp.com/documentation/knowledge-base/using-apache-tika-for-document-processing/

    I assume there other plugins that do something similar.

    Perhaps you could give people two options within the plugin – 1) send to your server for processing or 2) show instructions (5 ssh commands) on how to install Java, Tesseract and Tika on their own server?

    Or, instead of your own tika server, you could do as SearchWP does and offer the two options of 1) use the current libraries that are included in ASP or 2) use Tika/Tesseract if installed on the server. You could create a documentation article about the differences (file type, ocr etc…) between the two and some sort of performance benchmark as well., so that users can better decide whether installing Tika is worthwhile.

    Another useful/necessary option would be to be able to process any existing attachments that don’t have the post_content field populated – as it stands, this only processes files upon initial upload. But, some people may have manually put a small description in the post_content field for some files, so perhaps a custom metafield would be better. This is what the other plugins do, but they delete that field if you delete the plugin – I think it would be nice to offer the option to persist the field/data even after you delete the plugin.

    You could also offer the option to fully re-process all files regardless of whether it has been done before.

    I hope this helps! I’m happy to discuss any of it.

    in reply to: Integrating Apache Tika's text extraction with ASP's Index #34895
    nickchomey18nickchomey18
    Participant

    Glad to hear that what I’ve done makes sense and that you’re interested in it!

    Im very inexperienced with development, so I can’t imagine that I can help you much with making it a one-click config, but it would be great if you are able to figure it out such that the average user doesn’t need to use ssh or ask their host to set it up. Perhaps the relevant libraries can be included directly in the plugin somehow? I suspect not, however.

    Or, at the very least, it would be useful if, from the plugin backend, you could set the path to the jar file as well as which file extensions and mime types are to be processed, rather than editing the plugin code directly.

    You can also set up Tika as a server, but that was far beyond my capabilities and seemingly unnecessary compared to just running the single jar file upon request.

    Anyway, for anyone even slightly technically inclined, or who has a host who is amenable to installing packages on the server, the ssh work isn’t more than a few commands for installing Java, tesseract, tesseract training data, creating a folder for Tika and using wget to download Tika. And then the plugin/snippet automatically processes any files that are uploaded (so long as the file type is included in its code). This includes files uploaded as part of buddypress/buddyboss activity feed and other media collections.

    One final thing to note – if using Openlitespeed (and perhaps litespeed Enterprise), running Tika from WordPress creates memory related errors. After considerable debugging with my host/control panel (runcloud) as well as some input from litespeed, the solution was to just change a couple of parameters in the litespeed webapp config. https://forum.openlitespeed.org/threads/ols-is-preventing-wordpress-from-properly-communicating-with-apache-tika.5008/#post-11724

    Please let me know if you have any questions about how I’ve configured it!

    nickchomey18nickchomey18
    Participant

    Ok thanks anyway! Please close the ticket

    nickchomey18nickchomey18
    Participant

    I figured not. Is it possible to add some radio buttons using HTML to serve as the basic/permanently showing filters, pass the values to ASP, and then use the hidden/collapsible filters for the other settings?

Viewing 15 posts - 16 through 30 (of 38 total)