Forum Replies Created
-
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Add Transient Cache for Performance #31299
Transients are types of cached data enabled in WordPress by the Transients API.
Something like this code :
set_transient( $transient, $value, $expiration );
get_transient ( $transient );prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Exclude posts based on custom acf field value #31294we have around 2L posts, so this wont work for us.
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Exclude posts based on custom acf field value #31292Can we create a custom field, and push data to that field, while indexing and use that to hide or show results. I want to set a create a field, if that meta_key isn’t available for a post id, and set the value to Yes.
We have ACF meta_key , which is either es, No or its not available for 80% of posts, when meta_key is not present, I want to create field and set to Yes.
Some sort of this code ?
$doc2->setField(‘id’, 124);
$doc2->setField(‘name’, ‘testdoc-2’);prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Exclude posts based on custom acf field value #31286
Can’t we use this to hide products based on Value ‘NO’, regardless of if the same field exists with Yes, empty or even doesn’t exists for other posts ? Currently we have to use preselect Yes or No, for this to work, I want to hide those with No…prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31268Actually, we are transitioning from Solr, expecting all functionality would work with more enhancements.
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31266We found issue, after adding the boost , the query is retuning empty data. Here are the query monitor logs:
With Boost

Without Boost

We definitely need to use boost, to give more priority to title if more keywords are matching.prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31263Is there anything to do with this option ?
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31260Here is the query with fuzzy :

Here is the query without fuzzy :

Any idea, where its going wrong?- This reply was modified 4 years, 1 month ago by prakashreddy.imduri.
- This reply was modified 4 years, 1 month ago by prakashreddy.imduri.
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31248how can I fix issue with fuzzy search then ? as its not even able to match the first 3 words that are present in beginning of the title , which works fine with fuzzy turned off.
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31245Can you try with fuzzy search for same query?
“query”: “(Kit~1 Blue~1)”,prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31243why there is ~ icon in our query, also we have boost for all fields, but still that boost isnt showing in the query .
“fields”: [“title^11”, “product_visibility_str^11”, “summary_t”, “figures_str”, “tables_str”, “contents_str”, “synopsis_str”, “content^0.5”],
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31241Can you tell me, why this queries are different with fuzzy search activated. why there is ~ icon in our query, may be this is breaking the results ?
“query”: “(Kit^1 Blue^1)”,
“query”: (Diabetic~1 Macular~1 Edema~1 drugs~1)”,prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31239Even searching for the word Diabetic isn’t returning any results, after fuzzy turned on.
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31238Found similar issue with this search:
“query”: {
“function_score”: {
“functions”: [{
“filter”: {
“match”: {
“product_visibility_str”: “featured”
}
},
“weight”: 11
}],
“query”: {
“bool”: {
“must”: {
“query_string”: {
“fields”: [“title^11”, “product_visibility_str^11”, “summary_t”, “figures_str”, “tables_str”, “contents_str”, “synopsis_str”, “content^0.5”],
“query”: “(Diabetic~1 Macular~1 Edema~1 drugs~1)”,
“default_operator”: “AND”
}
},There is a product with the title., but once fuzzy is turned on, this query returns no results . Can you check if anything wrong in this query?
prakashreddy.imduriParticipant4 years, 1 month ago in reply to: Boost Search on Taxonomy Pages #31237these all fields might contain the word retail :
“title^10”, “summary_t”, “figures_str”, “tables_str”, “contents_str”, “synopsis_str”,