Elasticpress shingle TokenFilter error

  • Bodav
    Participant
    # 9 months, 3 weeks ago

    Hello,
    I am trying to connect with elasticpress, my data is in Hebrew. (elasticpress plugin has Hebrew language in the language selection list so I guess it should be possible)
    When I try to create the index from wpsolr I get
    “type”: “illegal_argument_exception”, “reason”: “In Shingle TokenFilter the difference between max_shingle_size and min_shingle_size (and +1 if outputting unigrams) must be less than or equal to: [3] but was [4]. This limit can be set by changing the [index.max_shingle_diff] index level setting.” }
    I selected English language as there is no Hebrew in the list

    Thank you Patrice!

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    Can you contact Elasticpress.io support with your error?

    Tell them you selected the standard English analyser to create your index: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html#english-analyzer

    But I do not understand how you will be able to configure the index created by WPSOLR with Elasticpress.io Hebrew analyser.

    You could ask what is this Hebrew analyser?

    Bodav
    Participant
    # 9 months, 3 weeks ago

    hi Patrice,
    I opened a support ticket with elasticpress regarding the matter.
    Till they answer, I managed to sync all my orders and products to elastic.co (with the default english language).
    but nothing comes up on backend search results. example for product name:
    WPSOLR Log query =>
    Url: “/wp-admin/edit.php?ac-actions-form=1&orderby=title&order=asc&s=%D7%92%D7%96%D7%A8&post_status=all&post_type=product&seo_filter&readability_filter&layout=601fdf8eea515&product_cat&product_type&stock_status&action=-1&paged=1&action2=-1”
    Index: “freshuk_index1”
    Nb results shown: 0
    Total nb results: 0
    Speed: 1170 ms
    Query: {
    “from”: 0,
    “size”: 100,
    “sort”: {
    “title_s”: {
    “order”: “asc”
    }
    },
    “highlight”: {
    “require_field_match”: false,
    “pre_tags”: [
    “”
    ],
    “post_tags”: [
    “”
    ],
    “fields”: {
    “title”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “content”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “comments”: {

    Last seen: 2021-09-08 20:58:37 Asia/Jerusalem
    Total events: 1
    am i not getting results because it’s english?

    Bodav
    Participant
    # 9 months, 3 weeks ago

    i played with the fields to sync a little and now product search is working with elastic.co!
    WPSOLR Log query =>
    Url: “/wp-admin/edit.php?ac-actions-form=1&orderby=title&order=asc&s=%D7%A1%D7%9C&post_status=all&post_type=product&seo_filter&readability_filter&layout=601fdf8eea515&product_cat&product_type&stock_status&action=-1&paged=1&action2=-1”
    Index: “freshuk_index1”
    Nb results shown: 29
    Total nb results: 29
    Speed: 597 ms
    Query: {
    “from”: 0,
    “size”: 100,
    “sort”: {
    “title_s”: {
    “order”: “asc”
    }
    },
    “highlight”: {
    “require_field_match”: false,
    “pre_tags”: [
    “”
    ],
    “post_tags”: [
    “”
    ],
    “fields”: {
    “title”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “content”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “comments”: {

    Last seen: 2021-09-08 21:09:22 Asia/Jerusalem
    Total events: 1
    but still orders do not work

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    elastic.co or elasticpress.io ?

    Bodav
    Participant
    # 9 months, 3 weeks ago

    i am waiting for elasticpress.io reply regarding hebrew
    but tried elastic.co till they answer
    was able to sync, and i can search products (still categories do not work like algolia)
    but nothing appears on orders search at all

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    Can I see the full Elasticsearch query for admin order lists?

    Bodav
    Participant
    # 9 months, 3 weeks ago

    that’s for order search by name
    WPSOLR Log query =>
    Url: “/wp-admin/edit.php?ac-actions-form=1&orderby=date&order=desc&s=%D7%9C%D7%99%D7%9C%D7%95&post_status=all&post_type=shop_order&m=0&layout=60129b0ba53cf&_customer_user&order_delivery_date_filter&orddd_custom_startdate&orddd_custom_enddate&cfw_order_bump_filter&action=-1&paged=1&action2=-1”
    Index: “freshuk_index1”
    Nb results shown: 0
    Total nb results: 0
    Speed: 941 ms
    Query: {
    “from”: 0,
    “size”: 300,
    “sort”: {
    “date”: {
    “order”: “desc”
    }
    },
    “highlight”: {
    “require_field_match”: false,
    “pre_tags”: [
    “”
    ],
    “post_tags”: [
    “”
    ],
    “fields”: {
    “title”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “content”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “comments”: {

    Last seen: 2021-09-09 12:11:02 Asia/Jerusalem
    Total events: 1

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    Still missing the end of the query.

    What is ?ac-actions-form=1 url parameter ?

    Bodav
    Participant
    # 9 months, 3 weeks ago

    Url: “/wp-admin/edit.php?ac-actions-form=1&orderby=date&order=desc&s=%D7%AA%D7%9E%D7%A8+%D7%A9%D7%98%D7%99%D7%99%D7%9F&post_status=all&post_type=shop_order&m=0&layout=60129b0ba53cf&_customer_user&order_delivery_date_filter&orddd_custom_startdate&orddd_custom_enddate&cfw_order_bump_filter&action=-1&paged=1&action2=-1”

    Bodav
    Participant
    # 9 months, 3 weeks ago

    Url: “/wp-admin/edit.php?ac-actions-form=1&orderby=date&order=desc&s=%D7%AA%D7%9E%D7%A8+%D7%A9%D7%98%D7%99%D7%99%D7%9F&
    post_status=all&post_type=shop_order&m=0&layout=60129b0ba53cf&
    _customer_user&order_delivery_date_filter&
    orddd_custom_startdate&orddd_custom_enddate&
    cfw_order_bump_filter&action=-1&paged=1&action2=-1”

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    I can see a query in Hebrew. It could be the reason.

    Bodav
    Participant
    # 9 months, 3 weeks ago

    i searched in hebrew yes.
    product search in hebrew works perfectly but without the categories (like algolia)

    as for orders, i just found out that 1 word hebrew search works. but if i write 2 words, first and last name for example, no results are given

    Bodav
    Participant
    # 9 months, 3 weeks ago

    one word hebrew search gives the results
    WPSOLR Log query =>
    Url: “/wp-admin/edit.php?ac-actions-
    form=1&orderby=date&order=desc&s=%D7%AA%D7%9E%D7%A8&post_status=all&post_type
    =shop_order&m=0&layout=60129b0ba53cf
    &_customer_user&order_delivery_date_filter&
    orddd_custom_startdate&orddd_custom_enddate&cfw_order_bump_filter&paged=1”
    Index: “freshuk_index1”
    Nb results shown: 298
    Total nb results: 298
    Speed: 1549 ms
    Query: {
    “from”: 0,
    “size”: 300,
    “sort”: {
    “date”: {
    “order”: “desc”
    }
    },
    “highlight”: {
    “require_field_match”: false,
    “pre_tags”: [
    “”
    ],
    “post_tags”: [
    “”
    ],
    “fields”: {
    “title”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “content”: {
    “fragment_size”: 50,
    “number_of_fragments”: 1
    },
    “comments”: {

    Last seen: 2021-09-09 12:53:17 Asia/Jerusalem
    Total events: 1

    wpsolr
    Keymaster
    # 9 months, 3 weeks ago

    With first name or last name, it works. But not with both?
    Could be an issue with English analyser working on Hebrew.

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

You must be logged in to reply to this topic.