I am able to index the search in the development Pantheon environment, but it’s failing in the staging and production environments. Pantheon support responded that the plugin does not support PHP 8.1. Is there anything that can be done to work around this?
]]>Maybe similar to this issue, but I think a little different.
Some editors do not store in the content field, for instance ACF stores in wp_postmeta.meta_value. Can you provide direction how to indext the values in wp_postmeta.meta_value?
]]>I discovered a bug while building the query. Please check line 743 within the file class-solrpower-wp-query.php. You missed a parenthesis in this line:
$multi_query[] = ‘(parent_’ . $field . ‘:’ . implode( ‘OR’, $terms ) . ‘)’;
It should be:
$multi_query[] = ‘(parent_’ . $field . ‘:(‘ . implode( ‘OR’, $terms ) . ‘))’;
I had to include the parentheses, and now I’m receiving the correct results (including children).
]]>Hello,
I’m interested in understanding how we can ensure a backup or restore mechanism for indexing in case the Solr plugin is accidentally disabled or uninstalled. While exploring options within the Pantheon platform, I couldn’t find any specific commands for this purpose. However, in the Solr documentation (https://solr.apache.org/guide/6_6/making-and-restoring-backups.html), there are mentions of backup and restore APIs.
Could you please advise if there’s a way to implement these APIs within our platform or if there are any live examples or methods to integrate them into our site? It’s crucial for us to have a fail-safe mechanism in place to avoid data loss in such scenarios.
Thank you.
]]>Hi I want to configure tag slug as well with tag name for search, because tag names are changed sometimes so i want write query with tag slug,
could you please help how can i configure that.
sample query:
GET /my_branch/_search
{“from”:0,”size”:20,”_source”:[“id”,”type”,”title”,”date”,”author”,”author_str”,”tags”],”sort”:{“displaydate”:”desc”},”query”:{“bool”:{“filter”:{“bool”:{“must”:[{“bool”:{“must”:[{“terms”:{“tags”:[“here_i_want_to_add_search based on_tag_slug“]}}]}}]}},”must”:[{“term”:{“type”:”post”}}]}}}
Input tag is Anti semitism
here is the output:
{
"_index": "my_branch",
"_id": "422442",
"_score": null,
"_source": {
"id": 422442,
"type": "post",
"title": "The Israel-Hamas war has left Britain divided",
"author": "Andrew Marr",
"date": "2023-10-18T16:38:58Z",
"tags": [
"Anti semitism",
"Conservatives",
"Hamas",
"Israel",
"Labour",
"Magazine",
"Sponsored"
],
"author_str": [
"andrew_marr"
]
},
"sort": [
1697650738000
]
},
But i want to consider tag slug i.e anti-semitism for search.
]]>Hi, Team I have faced one issue in site level search functionality,
Eg: Actually i have searched with some text like: Liquid in search it is giving found_posts=19 and as per this max number of pages are set to 2 (due to posts_per_page=10) but the actually results are 114 (Including text found in post titles and post content etc), I think found_posts are manipulated in this file :solr-power\includes\class-solrpower-wp-query.php file using filters like:
add_filter( ‘posts_request’, array( $this, ‘posts_request’ ), 10, 2 );
// Nukes the FOUND_ROWS() database query.
add_filter( ‘found_posts_query’, array( $this, ‘found_posts_query’ ), 5, 2 );
add_filter( ‘found_posts’, array( $this, ‘found_posts’ ), 5, 2 );
$wp_query found_posts/Max number of pages manipulated here so it is giving different search results, can you please suggest here.
Please let me know any other clarifications required here please.
Thanks,
Thirumala
Hi Team,
I have added one custom search form to search under a specific parent page and for that, I am adding a filter to manipulate query. But when I enable the solr plugin, I got results from the whole site instead of pages under a specific parent page.
/*
* Custom Search results
*/
function custom_searchfilter( $query ) {
if ( $query->is_search){
$query->set('solr_integrate', true);
}
if ( $query->is_search && isset( $_GET['search-type'] ) ) {
$parent_page = filter_input( INPUT_GET, 'search-type', FILTER_SANITIZE_STRING );
$parent_page_array = explode( ', ', $parent_page );
// print_r($parent_page_array);
$query->set( 'post_parent__in', $parent_page_array );
// $query->set( 'post_parent', 246 );
}
return $query;
}
add_filter( 'pre_get_posts', 'custom_searchfilter' );
I think plugin does not support the default filters of search.
Please suggest me a way to accomplish this.
Thanks
]]>Is it possible to trigger indexing through cron job or other server side tool?
]]>Hi, Thank you for providing this plugin. But is there any chance that this plugin will be updated to work with latest Solr 8.11.1 (or newer ;))? Even the OpenJDK 7 behind it is not supported anymore (see https://endoflife.date/java for reference). Security-wise, a warning note should be placed directly above the description details (imho).
Thanks!
]]>I have a WordPress site on Pantheon hosting with SOLR turned on. Site is built using ACF plugin utilizing Flexible Content and repeaters. I have put all of the custom fields I want indexed by name (I know that they have to be exact and so I went through the Database and got all of the exact names). The “Index Custom Fields” is not being indexed. Any input in this?
One of the example names added to this setting is:
content_0_banner_text
“content” is the name of the main – top level – field, which is a Flexible Content field.
Thank you in advance!
]]>Hello!
I see references to AJAX being used with this plugin. In particular under the ‘Facet Options’ tab. However, whether I’ve set ‘AJAX Facet Search Support’ or not the behavior seems to be the same. A full page refresh is made every time.
I’ve looked for examples where the plugin is used in both the GitHub page and https://www.ads-software.com/plugins/solr-power/#description but can’t seem to find any.
I was hoping someone could provide me an example of how the plugin should behave when ‘AJAX Facet Search Support’ is selected or explain to me what differences I should see between when it is and set and when it is not.
I followed the instructions here:
https://pantheon.io/docs/wordpress-solr
Take care,
Billy
]]>The only reference that fuzzy search is in the latest version https://lucene.apache.org/solr/guide/6_6/the-standard-query-parser.html so not sure if fuzzy search is already supported in Pantheon Solr version 3.6.
No reference of that feature from these resources:
https://github.com/pantheon-systems/solr-power
https://github.com/pantheon-systems/solr-power/wiki/Filters
https://pantheon.io/docs/solr
Is fuzzy search applicable in Pantheon’s Solr v 3.6?
Do we have any guides/samples of implementations where we can start wit?
Thanks!
]]>will this plugin support multisite environment.
If its supporting we are using in multisite facing below issues
1) Auto indexing not working on adding new data.
2) Pagination numbers getting wrong when we are changing count of display like 50,75,100
Please help we are facing this in live.
]]>We have an existing installation running on ColdFusion/MS Windows. What are the possibilities of migrating our collections over?
]]>Am using this plugin, all facets search and text search is working fine but am giving the date filler option along with facets but am not able to search by from and to Dates along with facets
We don’t have an option in CMS to select date wise search and also am not able to find any hooks
I have appended the date boxes by jQuery to facets widget when On change event search result should refine based on input dates.
Please let me know, how can i achieve this.
Thanks.
]]>you confirm that this plugin works only with the version of Solr 3.6 and not even with newer versions?
thanks
Hello,
We are using the PHP FPM and Apache is not working. Is this plugin works with NGINX PHP FPM?
Thanks.
]]>Hi,
I have installed the “Solr Search for WordPress” (https://www.ads-software.com/plugins/solr-power/) & configured it.
It works in solr admin dashboard but not the WordPress default search. It returns empty result.
Any ideas? I’d very much appreciate any suggestion.
Thanks.
]]>Hello dear developer, hello dear user
i look for the Apache Solr for a better support of WP-Jobmanager.-
Any experience with this – interoperation /& interaction?
]]>Hi,
In the Solr Search documentation there is no reference to PHP compatibility.
Is there any known issue using an old PHP version such as 5.3.3? We are running WP 4.8.2.
Thanks
G
Under “Configuration Tips”, there is a heading for “SEARCHING BY AUTHOR NAME”. But the code snippet to add to the schema.xml is blank? Could I get that code snippet? Thanks!
]]>When placing the Solr Search widget, it doesn’t have any pick-list or filter facets out of the box.
Any guide on how to build one?
I have set up my server and installed solr with tomcat too . i can see the admin page for solr from my server ip and port but connecting it to wordpress is an issue because the commands u put in the install manual are not working for me… maybe am doing it wrong because its my first time dealing with this. any pointers.
”
Install the Java Runtime Environment.
Run ./bin/install-solr.sh to install and run Apache Solr on port 8983.
Configuring Solr Power to use this particular Solr instance by setting the PANTHEON_INDEX_HOST and PANTHEON_INDEX_PORT environment variables.
Copying schema.xml to the Solr configuration directory (a path similar to solr/conf/schema.xml).
” I set up the environment , point number two is not working and plugin is still asking for the PANTHEON_INDEX_HOST and PANTHEON_INDEX_PORT environment variables.
]]>Hi
I have the following use case:
I currently have a plugin which displays items stored on another webapp which I display in WordPress. I would now like to make these remote items searchable within Solr using your plugin. To do this, I need to retrieve the remote items then hook into your indexer so that I can index the retrieved items in your Solr index.
Is there a way to do this and, if so, are there any API or how-to docs on extending the Solr Search for WordPress indexer?
Any help much appreciated.
Thanks
Hayden
]]>We’d like to get more of how to generate and manage WooCommerce specific schemas. One that can quick integrate, or a ready set-up schema.
But currently, how can we exactly do that?
]]>Hello, I installed your plugin on my test environment to test out if it was possible to filter the facets through the default wordpress search.
I’m trying to search by an author name, but it always returns 0 results.
Am I missing anything to make the plugin work with the default wordpress search or the plugin doesn’t enhance the search without any config?
Thanks, Rafael Ramalho.
]]>I get an error message while attempting to create an index
An error occured:
Error on line 294 of file /nas/content/live/travelluxury/wp-content/plugins/wpsolr-search-engine/wpsolr-core/classes/engines/wpsolr-abstract-index-client.php: Undefined index: p_types
]]>
Any assistance is appreciated..
]]>Hello,
Does this plugin provide range facets? I am looking to use Solr on an eCommerce site and hence need to provide range facets for fields such as Price, Size etc. Please let me know. Thanks.