tgaff2x
Forum Replies Created
-
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Custom post_urlregarding “Is there an option to change the post_url that is displayed on search results?”
is it also possible to use
WpSolrFilters::WPSOLR_ACTION_POSTS_RESULTSI tried a quick
add_action( WpSolrFilters::WPSOLR_ACTION_POSTS_RESULTS, ‘wpsolr_action_modify_post_url’,
10, 1 );but my function wasn’t getting called. not even sure if this path is worth pursuing.
https://www.wpsolr.com/guide/actions-and-filters/search-results-modify-posts/Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Custom post_urlOK, thanks. I think this part may be problematic for me “The item will not be found by the content of it’s PDF. WPSOLR only indexes post attachments stored in the media library, not attachments linked to a post.”
Is there a way to index an attached pdf and have the post found?
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] custom searchThanks, looks good
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] custom searchOK great, that solved most of my use cases.
However, with the proximity search such as “near me”~5 which should find any time those two words are within 5 it was still failing.
It looks like this is due to the fact that the query is passed in as \”near me\”~5 with the quotes being escaped. I added in another str_replace to remove the back slashes and now it seems to work for me.
Are you OK with this approach, or recommend anything else.
Thanks again for your prompt responses.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] custom searchThanks for the replies.
I could swear at one point, I could use many of the custom solr search approaches outlined here –
https://www.solrtutorial.com/solr-query-syntax.htmlincluding the title: search, proximity search, etc.
You are saying that the standard solr syntax isn’t just passed on to solr search in a way that is understood by solr?
- This reply was modified 7 years, 10 months ago by tgaff2x.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] custom searchI go to the search page, type in “title:price” without the quotes, click the search button.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] Premium features wishlistI’d love to see an option to allow the end user to limit the search to specific time periods.
Perhaps an admin option to enable/disable date restrictions, and then front end that shows a drop down with:
Past day (last 24 hours)
Past week (last 7 days)
Past month (last 30 days)
Past year
AllI ran another test on this. It looks like when the limit value is set to 0 within wpsolr, it does not send any value for facet.limit to solr based on solr.log. When no value is set for facet.limit, solr uses the default which is generally 100.
However, it looks like if facet.limit is set to a negative number (-1) then the number of facets is truly unlimited.
Can you modify this, such that user can enter a value of -1 in admin, for unlimited facets. 0 can still be used as that will then utilize solr default.
Thank you!
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] AttachmentsPlease let me know your thoughts on this one. If it’s not possible, just let me know so I can start thinking about some alternate solutions.
Thanks!
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] AttachmentsAlso note, I’d be fine with the attachment either being a normal media/attachment or using a custom field via the Types plugin or similar.
Thanks
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] # results w/ infinite scrollLooks good, thanks!
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] # results w/ infinite scrollThat’s be nice, too… but it doesn’t accomplish what I’m really looking for.
I’m looking specifically to just display by default the total # of documents found at the top of the list, before any scrolling takes place.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] # results w/ infinite scrollSpoke too soon, didn’t realize the formatting of the localization string.
wound up changing the localization text to something like
<span style-“display:none;”>%d %d</span>%d Item(s) Foundso yeah – hoping you have a better approach as that’s a bit ugly.
Forum: Plugins
In reply to: [WPSOLR - Elasticsearch and Solr search] # results w/ infinite scrollActually, I can kind of get there on my own but it’s a bit hacky. I did:
1. Enabled the infinite scroll option
2. Changed the localization text to %s Item(s) Found
3. added custom css on .res_info { display: inline !important; }So, I can live with this but I still think it’d be nice to have an easier way for people using the infinite scroll option