WPSolr logo
Search
Close this search box.

Forum Replies Created

  • finalwebsites
    Participant
    4 years, 3 months ago in reply to: How to query the WPSOLR results in my theme? #16787

    I don’t wanna use a different plugin for that (definitively not Toolset).
    Is there no way to do that using PHP code? Any documentation for developers?

    finalwebsites
    Participant

    Hi,

    this question was more common (sorry for trashing this topic). I will also create queries for posts on different places.
    What kind of query / function or filter can I use?

    finalwebsites
    Participant

    Hi,
    I checked the code form the Yith plugin and noticed they just using the get_posts() functions to get the suggestions for the the ajax search. I’ve built my own search widget using the same function. It looks like that my results are based on WPSOLR (it’s very fast, but my query is searching only inside the title and description. Where can I find some information about custom queries I can perform on the WPsolr search index?
    Thanks

    finalwebsites
    Participant

    Hi,

    I have the same problem. We bought the Yith premium to get a better experience.
    The problem is that the whole search mechanism is different from the free version.
    In the free version only some arguments are used for the get_posts() function. For the premium version the use their own taxonomy and meta query arguments. My guess is that it’s the reason why WPSOLR doesn’t work. Any suggestions? My forst idea is to fork the free version and add the extra information to the list of post suggestions (like thumb, categories and price)

    finalwebsites
    Participant
    4 years, 4 months ago in reply to: Index #15896

    What is this link https://123blaasmuziek.nl/bezetting/saxofoon-kwartet/ ?

    >>> This is an attribute archive.

    According the backend there are more than 100 products with this attribute

    finalwebsites
    Participant

    It’s working again thanks

    finalwebsites
    Participant

    Indexing is working now.
    Was the problem something that could happen more often? Or is it very rare?

    finalwebsites
    Participant

    And where do I change this? It worked before and also for the other site (similar to this one)

    finalwebsites
    Participant

    This is what I get:

    #! Deprecation: [types removal] The parameter include_type_name should be explicitly specified in get indices requests to prepare for 7.0. In 7.0 include_type_name will default to ‘false’, which means responses will omit the type name in mapping definitions.
    {
    “hafabra_index_new” : {
    “aliases” : { },
    “mappings” : {
    “wpsolr_types” : {
    “properties” : {
    “PID” : {
    “type” : “long”
    },
    “PID_i” : {
    “type” : “long”
    },
    “author” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “author_s” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “bms_kleine_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “categories” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “content” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “date” : {
    “type” : “date”
    },
    “displaydate” : {
    “type” : “date”
    },
    “displaydate_dh_i” : {
    “type” : “long”
    },
    “displaydate_dm_i” : {
    “type” : “long”
    },
    “displaydate_ds_i” : {
    “type” : “long”
    },
    “displaydate_dt” : {
    “type” : “date”
    },
    “displaydate_dt_dh_i” : {
    “type” : “long”
    },
    “displaydate_dt_dm_i” : {
    “type” : “long”
    },
    “displaydate_dt_ds_i” : {
    “type” : “long”
    },
    “displaydate_dt_md_i” : {
    “type” : “long”
    },
    “displaydate_dt_wd_i” : {
    “type” : “long”
    },
    “displaydate_dt_y_i” : {
    “type” : “long”
    },
    “displaydate_dt_yd_i” : {
    “type” : “long”
    },
    “displaydate_dt_ym_i” : {
    “type” : “long”
    },
    “displaydate_dt_yw_i” : {
    “type” : “long”
    },
    “displaydate_md_i” : {
    “type” : “long”
    },
    “displaydate_wd_i” : {
    “type” : “long”
    },
    “displaydate_y_i” : {
    “type” : “long”
    },
    “displaydate_yd_i” : {
    “type” : “long”
    },
    “displaydate_ym_i” : {
    “type” : “long”
    },
    “displaydate_yw_i” : {
    “type” : “long”
    },
    “displaymodified” : {
    “type” : “date”
    },
    “displaymodified_dt” : {
    “type” : “date”
    },
    “displaymodified_dt_dh_i” : {
    “type” : “long”
    },
    “displaymodified_dt_dm_i” : {
    “type” : “long”
    },
    “displaymodified_dt_ds_i” : {
    “type” : “long”
    },
    “displaymodified_dt_md_i” : {
    “type” : “long”
    },
    “displaymodified_dt_wd_i” : {
    “type” : “long”
    },
    “displaymodified_dt_y_i” : {
    “type” : “long”
    },
    “displaymodified_dt_yd_i” : {
    “type” : “long”
    },
    “displaymodified_dt_ym_i” : {
    “type” : “long”
    },
    “displaymodified_dt_yw_i” : {
    “type” : “long”
    },
    “flat_hierarchy_pa_arrangeur_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_componist_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_instrument_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_moeilijkheidsgraad_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_periode_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_series_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_soort-bladmuziek_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_uitgever_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_pa_vorm_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “flat_hierarchy_product_cat_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “id” : {
    “type” : “long”
    },
    “inhoudsopgave_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “isbn_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “menu_order_i” : {
    “type” : “long”
    },
    “meta_type_s” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “modified” : {
    “type” : “date”
    },
    “modified_dh_i” : {
    “type” : “long”
    },
    “modified_dm_i” : {
    “type” : “long”
    },
    “modified_ds_i” : {
    “type” : “long”
    },
    “modified_md_i” : {
    “type” : “long”
    },
    “modified_wd_i” : {
    “type” : “long”
    },
    “modified_y_i” : {
    “type” : “long”
    },
    “modified_yd_i” : {
    “type” : “long”
    },
    “modified_ym_i” : {
    “type” : “long”
    },
    “modified_yw_i” : {
    “type” : “long”
    },
    “non_flat_hierarchy_pa_arrangeur_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_componist_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_instrument_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_moeilijkheidsgraad_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_periode_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_series_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_soort-bladmuziek_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_uitgever_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_pa_vorm_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “non_flat_hierarchy_product_cat_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “numcomments” : {
    “type” : “long”
    },
    “pa_arrangeur_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_componist_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_instrument_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_moeilijkheidsgraad_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_periode_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_series_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_soort-bladmuziek_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_uitgever_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “pa_vorm_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “permalink” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “post_author_s” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “post_status_s” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “product_cat_str” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “title” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “title_s” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    },
    “type” : {
    “type” : “text”,
    “fields” : {
    “keyword” : {
    “type” : “keyword”,
    “ignore_above” : 256
    }
    }
    }
    }
    }
    },
    “settings” : {
    “index” : {
    “creation_date” : “1571732495550”,
    “number_of_shards” : “5”,
    “number_of_replicas” : “1”,
    “uuid” : “kiWK_-vPSI-5HiH8L9uoiQ”,
    “version” : {
    “created” : “6080399”
    },
    “provided_name” : “hafabra_index_new”
    }
    }
    }
    }

    finalwebsites
    Participant

    I did this and after trying to index I get this error on the same page as before:

    failed to parse field [id] of type [long] in document with id ‘pa_componist_24886’

    Looks like some other problem 🙁

    finalwebsites
    Participant

    The database table structure had only integer fields for the IDs.
    So that can’t be possible.

    finalwebsites
    Participant

    Okay I did that, but I can’t re-index them I see this error on the screen:

    failed to parse field [id] of type [long] in document with id ‘pa_componist_24886’

    (the same like before)

    finalwebsites
    Participant

    I can’t disable the Products post type on 2.2.
    After page load the checkbox is checked again.

    finalwebsites
    Participant

    and how can I solve that?

    finalwebsites
    Participant

    pa_arrangeur is a taxonomy (WC product attribute)

    I don’t have those custom fields

Viewing 15 posts - 16 through 30 (of 49 total)