WPSolr logo
Search
Close this search box.

Forum Replies Created

  • Piteus
    Participant
    2 years, 11 months ago in reply to: Not index description #26653

    Sorry, i just noticed that it index description but not index short description

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26336

    I 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

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26335

    I 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

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26326

    Filters disappear for each filter i select, not only if i filter by Date, this in shop page

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26325

    No error in debug.log

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26323

    I 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

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26322

    Hello, 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”

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26321

    I’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 this

    
    wpsolr_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

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26317

    Now 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

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26315

    I 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 indexed

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26314

    I await news

    Piteus
    Participant
    2 years, 11 months ago in reply to: Custom field filters #26311

    without “AND ((custom_data_dt_i:1594951816137 TO 1609545600000))” it found results but with it no result

    Piteus
    Participant
    2 years, 12 months ago in reply to: Custom field filters #26305

    Can you tell me where?

    Piteus
    Participant
    2 years, 12 months ago in reply to: Custom field filters #26304

    Sorry but i don’t know where execute the query on Algolia dashboard

    Piteus
    Participant
    2 years, 12 months ago in reply to: Custom field filters #26302

    Query:
    [ { "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?

Viewing 15 posts - 1 through 15 (of 36 total)