Forum Replies Created
- PiteusParticipant2 years, 11 months ago in reply to: Not index description #26653
Sorry, i just noticed that it index description but not index short description
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26336I found the problem, i’m using two times filters plugin, in two different place, in the first I’ve only range bar and the other filters as “Invisible”, in the secondo only the other filters and the bar as “Invisible”, in the first widget i changed “Invisible” and i set display: none in css and now works
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26335I have set
define('WP_DEBUG', true); define('WP_DEBUG_log', true);
But no files were created, i’ve not error in javascript console and i’ve not error in Query Monitor
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26326Filters disappear for each filter i select, not only if i filter by Date, this in shop page
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26325No error in debug.log
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26323I also noticed that this happens only in shop page, if I search an item by search bar and only after i’m going to filter they don’t disappear
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26322Hello, I found a new problem, after i filter by Date or product_cat in the sidebar all other filters disappear and the only one that stays is “All results”
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26321I’ve replaced with that fix but and re-indexed all data but it showed me 19 january 1970, i solved editing code in javascript option(2.4 Filter -> custom_data), using code in this page i had this problem
https://www.wpsolr.com/guide/configuration-step-by-step-schematic/activate-extensions/extension-theme/theme-facets-layouts/theme-range-slider-layout/
I solved using thiswpsolr_ion_range_slider_options = { type: "double", grid: false, prettify: function tsToDate(ts) { var lang = "it-IT" var d = new Date(Date.UTC(1970, 0, 1)); d.setUTCSeconds(ts); return d.toLocaleDateString(lang, { year: 'numeric', month: 'long', day: 'numeric' }); } };
Thanks for the support
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26317Now i’ve a new problem, it seems to filter by date, but the slider is blocked from 19 january 1970 to 19 january 1970, but if i move slide the query in the url bar change correctly(at least apparently not seeing the date), another problem is that after i filter by Date the filter by product_cat disappear
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26315I think i’ve found problem, in algolia custom_data_dt_i is 1589846400 when i search in the query is 1589846400000
So it has 3 digit more then how is indexedPiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26314I await news
PiteusParticipant2 years, 11 months ago in reply to: Custom field filters #26311without “AND ((custom_data_dt_i:1594951816137 TO 1609545600000))” it found results but with it no result
PiteusParticipant2 years, 12 months ago in reply to: Custom field filters #26305Can you tell me where?
PiteusParticipant2 years, 12 months ago in reply to: Custom field filters #26304Sorry but i don’t know where execute the query on Algolia dashboard
PiteusParticipant2 years, 12 months ago in reply to: Custom field filters #26302Query:
[ { "query": "*", "offset": 0, "length": 10, "maxValuesPerFacet": 10, "sortFacetValuesBy": "alpha", "attributesToRetrieve": [ "id", "PID", "type", "meta_type_s", "title", "numcomments", "comments", "displaydate", "displaymodified", "*categories_str", "author", "*post_thumbnail_href_str", "*post_href_str", "snippet_s" ], "filters": "(type:\"product\") AND (NOT post_status_s:\"draft\" AND NOT post_status_s:\"pending\" AND NOT post_status_s:\"trash\" AND NOT post_status_s:\"future\" AND NOT post_status_s:\"private\" AND NOT post_status_s:\"auto-draft\") AND (NOT product_visibility_str:\"exclude-from-search\") AND ((NOT is_excluded_s:*) OR (is_excluded_s:\"n\"))AND ((custom_data_dt_i:1594951816137 TO 1609545600000))", "facets": [ "custom_data_dt_i", "flat_hierarchy_product_cat_str", "product_tag_str", "type", "post_status_s", "product_visibility_str", "is_excluded_s" ], "indexName": "dev_piteus_replica_sort_custom_data_dt_i_asc" }, { "facets": [ "filterOnly(type)", "filterOnly(post_status_s)", "filterOnly(is_excluded_s)", "custom_data_dt" ], "hitsPerPage": 0, "page": 0, "attributesToRetrieve": [], "attributesToHighlight": [], "attributesToSnippet": [], "analytics": false, "clickAnalytics": false, "filters": "(type:\"product\") AND (NOT post_status_s:\"draft\" AND NOT post_status_s:\"pending\" AND NOT post_status_s:\"trash\" AND NOT post_status_s:\"future\" AND NOT post_status_s:\"private\" AND NOT post_status_s:\"auto-draft\") AND ((NOT is_excluded_s:*) OR (is_excluded_s:\"n\"))", "indexName": "dev_piteus_replica_sort_custom_data_dt_i_asc" } ]
Result:
[ { "hits": [], "nbHits": 0, "offset": 0, "length": 10, "facets": [], "exhaustiveFacetsCount": true, "exhaustiveNbHits": true, "query": "*", "params": "query=*&offset=0&length=10&maxValuesPerFacet=10&sortFacetValuesBy=alpha&attributesToRetrieve=%5B%22id%22%2C%22PID%22%2C%22type%22%2C%22meta_type_s%22%2C%22title%22%2C%22numcomments%22%2C%22comments%22%2C%22displaydate%22%2C%22displaymodified%22%2C%22*categories_str%22%2C%22author%22%2C%22*post_thumbnail_href_str%22%2C%22*post_href_str%22%2C%22snippet_s%22%5D&filters=%28type%3A%22product%22%29+AND+%28NOT+post_status_s%3A%22draft%22+AND+NOT+post_status_s%3A%22pending%22+AND+NOT+post_status_s%3A%22trash%22+AND+NOT+post_status_s%3A%22future%22+AND+NOT+post_status_s%3A%22private%22+AND+NOT+post_status_s%3A%22auto-draft%22%29+AND+%28NOT+product_visibility_str%3A%22exclude-from-search%22%29+AND+%28%28NOT+is_excluded_s%3A*%29+OR+%28is_excluded_s%3A%22n%22%29%29AND+%28%28custom_data_dt_i%3A1594951816137+TO+1609545600000%29%29&facets=%5B%22custom_data_dt_i%22%2C%22flat_hierarchy_product_cat_str%22%2C%22product_tag_str%22%2C%22type%22%2C%22post_status_s%22%2C%22product_visibility_str%22%2C%22is_excluded_s%22%5D", "index": "dev_piteus_replica_sort_custom_data_dt_i_asc", "processingTimeMS": 1 }, { "hits": [], "nbHits": 8, "page": 0, "nbPages": 0, "hitsPerPage": 0, "facets": [], "exhaustiveFacetsCount": true, "exhaustiveNbHits": true, "query": "", "params": "facets=%5B%22filterOnly%28type%29%22%2C%22filterOnly%28post_status_s%29%22%2C%22filterOnly%28is_excluded_s%29%22%2C%22custom_data_dt%22%5D&hitsPerPage=0&page=0&attributesToRetrieve=%5B%5D&attributesToHighlight=%5B%5D&attributesToSnippet=%5B%5D&analytics=false&clickAnalytics=false&filters=%28type%3A%22product%22%29+AND+%28NOT+post_status_s%3A%22draft%22+AND+NOT+post_status_s%3A%22pending%22+AND+NOT+post_status_s%3A%22trash%22+AND+NOT+post_status_s%3A%22future%22+AND+NOT+post_status_s%3A%22private%22+AND+NOT+post_status_s%3A%22auto-draft%22%29+AND+%28%28NOT+is_excluded_s%3A*%29+OR+%28is_excluded_s%3A%22n%22%29%29", "index": "dev_piteus_replica_sort_custom_data_dt_i_asc", "processingTimeMS": 1 } ]
Did you mean this?