Elasticpress shingle TokenFilter error
-
BodavParticipant1 year, 8 months ago #27662
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 listThank you Patrice!
wpsolrKeymaster1 year, 8 months ago #27663Can 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?
BodavParticipant1 year, 8 months ago #27664hi 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?BodavParticipant1 year, 8 months ago #27665i 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 workBodavParticipant1 year, 8 months ago #27669that’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: 1BodavParticipant1 year, 8 months ago #27671Url: “/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”
BodavParticipant1 year, 8 months ago #27672Url: “/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”BodavParticipant1 year, 8 months ago #27675one 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
You must be logged in to reply to this topic.