ElasticSearch Essentials

ElasticSearch Essentials [Paid] 2.4.13

No permission to buy ($30.00)
Hi,
I purchased the addon and was looking for support on your site but didn't find it.

1. For some reason I seem to have some CSS issue with the autocomplete box width:
Screenshot at Jan 31 21-07-21.webp

Any idea how to fix it?

2. Also, how exactly do I add other items than "discussions" in this search? I see what it says in the options but is there a precise example?
Screenshot at Jan 31 21-11-59.webp

3. What are the strings that I should translate?

4. What is the "Search After" link in search results? How do I remove it?
upload_2017-1-31_21-15-29.webp

5. I disabled the addon until I find a fix for the CSS problem. Do I need to rebuild the index again when I re-enable?

Thanks
 
Hi,
I purchased the addon and was looking for support on your site but didn't find it.
There are various support forums there, but this works for general support.

1. For some reason I seem to have some CSS issue with the autocomplete box width:
View attachment 147277

Any idea how to fix it?
I'm not sure what is causing that (it uses "width:auto;") but it can be hard to work with custom themes. You will need to edit the template css "AutoCompletePopUp.css"

Look for:
Code:
.autoCompleteSearchList{
    border: 1px solid {xen:property primaryLight};
    padding: 2px;
    font-size: 11px;
    min-width: 180px;
    width: auto; 
    z-index: 1000;
}
Change width as required.

2. Also, how exactly do I add other items than "discussions" in this search? I see what it says in the options but is there a precise example?
View attachment 147278
This is support for extending to add more content types to the auto-complete. Someone previously paid for a private extension to allow searching for sub-forum names. If you are interested in additional auto-complete content types, please contact me for a private quote.

3. What are the strings that I should translate?
The add-on is fully-phrased, have a look at the XML file for a full list.

4. What is the "Search After" link in search results? How do I remove it?
View attachment 147279
This allows you to todo a search for older results than the current search results, this allows you to keep searching despite only being able to see a upto a fixed number of search results at a time.

The easy way to disable the template modifications with the description "Moar search".

5. I disabled the addon until I find a fix for the CSS problem. Do I need to rebuild the index again when I re-enable?
Yes, you'll need to re-index threads. Likely posts too if significant number have been deleted and you want searching deleted content to work.
 
I am getting loads of these errors. Could this be related to this addon or your ES enhancements? ES is running and displays as such in the admincp. It even gives live results, but fails when the search query is submitted.

Error Info
XenForo_Exception: Elasticsearch server returned no response. Is it running? - library/SV/ElasticEss/Model.php:421
Generated By: xxx, Today at 9:44 AM

Stack Trace
#0 /library/SV/ElasticEss/Model.php(159): SV_ElasticEss_Model->_logSearchResponseError(false, true)
#1 /library/SV/ElasticEss/Model.php(86): SV_ElasticEss_Model->autoCompleteQueryIndex(Array, Array, 'long ter', '', '5')
#2 /library/SV/ElasticEss/XenForo/ControllerPublic/Search.php(229): SV_ElasticEss_Model->autoComplete('long ter', '', '5')
#3 /library/XenForo/FrontController.php(351): SV_ElasticEss_XenForo_ControllerPublic_Search->actionAutocomplete()
#4 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /index.php(13): XenForo_FrontController->run()
#6 {main}
Request State
array(3) {
["url"] => string(43) "https://site.com/search/autocomplete"
["_GET"] => array(0) {
}
["_POST"] => array(5) {
["q"] => string(8) "Long ter"
["_xfRequestUri"] => string(14) "/search/search"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
I am getting loads of these errors. Could this be related to this addon or your ES enhancements? ES is running and displays as such in the admincp. It even gives live results, but fails when the search query is submitted.

Error Info
XenForo_Exception: Elasticsearch server returned no response. Is it running? - library/SV/ElasticEss/Model.php:421
Generated By: xxx, Today at 9:44 AM
You'll need to check the server elastic search logs (normally under /var/log/elasticsearch/ ) for why the query failed. Without that information troubleshooting is basically impossible.

This add-on uses Enhanced Search for the ElasticSearch setup, and I use it myself. I'm a bit baffled why it is failing.
 
I solved it. Now I am getting loads of these:
Code:
Exception: {"suggest":{"text":"addiction","simple_phrase":{"phrase":{"field":"title","analyzer":"standard","size":"5","real_word_error_likelihood":"0.95","max_errors":0.5,"gram_size":2,"direct_generator":[{"field":"title","suggest_mode":"popular","min_word_length":"5","max_term_freq":0.65},{"field":"tag","suggest_mode":"popular","min_word_length":"5","max_edits":2}],"highlight":{"pre_tag":"<span style=\"font-style:italic\">","post_tag":"<\/span>"}}}}} - library/XenForo/Error.php:240
Generated By: Alfa1, 12 minutes ago

Code:
Exception: {"query":{"bool":{"must":[{"query_string":{"query":"addiciton","fields":["title^3","message"],"default_operator":"and"}}],"must_not":[{"exists":{"field":"not_visible"}}],"should":[{"bool":{"filter":[{"type":{"value":"ams_article"}}]}},{"bool":{"should":[{"type":{"value":"conversation_message"}},{"type":{"value":"conversation"}}],"filter":[{"term":{"recipients":1}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"page"}}]}},{"bool":{"should":[{"type":{"value":"post"}},{"type":{"value":"thread"}}],"filter":[{"terms":{"node":[13,43,173,312,505,504,313,516,480,144,513,494,184,518,69,191,301,127,68,57,129,152,368,153,130,164,369,167,154,165,370,168,155,166,371,169,128,156,372,163,171,170,274,55,390,146,180,54,143,462,304,305,302,481,482,484,483,41,75,473,71,42,60,503,138,45,438,56,424,506,282,284,417,280,288,420,281,425,440,441,463,464,465,196,279,221,223,224,277,297,354,293,355,356,296,294,222,295,357,358,359,217,225,360,216,361,362,218,363,220,375,278,219,273,211,212,213,214,215,228,227,237,238,229,239,230,240,231,241,242,243,232,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,236,264,265,266,267,233,234,268,269,235,270,271,272,290,292,291,226,474,70,195,85,51,74,188,142,394,39,49,335,520,433,435,17,187,38,66,64,186,185,65,67,328,380,434,319,437,84,431,330,27,379,402,401,400,352,29,333,407,3,18,285,19,136,135,88,515,286,325,7,331,409,410,411,412,106,493,26,414,418,479,413,405,62,125,416,415,22,283,24,80,92,119,446,50,20,289,30,422,40,175,443,52,321,118,76,93,117,32,320,353,35,408,36,421,23,25,502,501,500,8,79,332,28,485,33,406,161,123,395,396,403,397,124,162,334,398,404,399,287,432,21,517,336,377,445,89,423,91,90,327,392,393,37,107,132,134,172,133,510,509,511,46,148,147,58,315,316,318,317,343,344,150,345,149,111,115,86,61,108,114,158,109,157,112,82,87,14,208,210,389,447,347,442,47,200,204,207,206,203,202,205,197,348,349,198,201,350,199]}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"profile_post"}}]}},{"bool":{"filter":[{"type":{"value":"profile_post_comment"}}]}},{"bool":{"filter":[{"type":{"value":"resource_update"}}]}},{"bool":{"filter":[{"type":{"value":"ubs_blog_entry"}}]}},{"bool":{"filter":[{"type":{"value":"xengallery_media"}}]}}],"minimum_should_match":1}},"sort":[{"date":"desc"}],"size":1,"docvalue_fields":["discussion_id","user","date"],"_source":false} - library/XenForo/Error.php:240

Code:
Exception: {"query":{"function_score":{"boost_mode":"replace","query":{"bool":{"must":[{"query_string":{"query":"addiction","fields":["title^3","message"],"default_operator":"and"}}],"must_not":[{"exists":{"field":"not_visible"}}],"should":[{"bool":{"filter":[{"type":{"value":"ams_article"}}]}},{"bool":{"should":[{"type":{"value":"conversation_message"}},{"type":{"value":"conversation"}}],"filter":[{"term":{"recipients":1}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"page"}}]}},{"bool":{"should":[{"type":{"value":"post"}},{"type":{"value":"thread"}}],"filter":[{"terms":{"node":[13,43,173,312,505,504,313,516,480,144,513,494,184,518,69,191,301,127,68,57,129,152,368,153,130,164,369,167,154,165,370,168,155,166,371,169,128,156,372,163,171,170,274,55,390,146,180,54,143,462,304,305,302,481,482,484,483,41,75,473,71,42,60,503,138,45,438,56,424,506,282,284,417,280,288,420,281,425,440,441,463,464,465,196,279,221,223,224,277,297,354,293,355,356,296,294,222,295,357,358,359,217,225,360,216,361,362,218,363,220,375,278,219,273,211,212,213,214,215,228,227,237,238,229,239,230,240,231,241,242,243,232,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,236,264,265,266,267,233,234,268,269,235,270,271,272,290,292,291,226,474,70,195,85,51,74,188,142,394,39,49,335,520,433,435,17,187,38,66,64,186,185,65,67,328,380,434,319,437,84,431,330,27,379,402,401,400,352,29,333,407,3,18,285,19,136,135,88,515,286,325,7,331,409,410,411,412,106,493,26,414,418,479,413,405,62,125,416,415,22,283,24,80,92,119,446,50,20,289,30,422,40,175,443,52,321,118,76,93,117,32,320,353,35,408,36,421,23,25,502,501,500,8,79,332,28,485,33,406,161,123,395,396,403,397,124,162,334,398,404,399,287,432,21,517,336,377,445,89,423,91,90,327,392,393,37,107,132,134,172,133,510,509,511,46,148,147,58,315,316,318,317,343,344,150,345,149,111,115,86,61,108,114,158,109,157,112,82,87,14,208,210,389,447,347,442,47,200,204,207,206,203,202,205,197,348,349,198,201,350,199]}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"profile_post"}}]}},{"bool":{"filter":[{"type":{"value":"profile_post_comment"}}]}},{"bool":{"filter":[{"type":{"value":"resource_update"}}]}},{"bool":{"filter":[{"type":{"value":"ubs_blog_entry"}}]}},{"bool":{"filter":[{"type":{"value":"xengallery_media"}}]}}],"minimum_should_match":1}},"script_score":{"script":{"params":{"now":1486482449,"halflife":5184000},"lang":"groovy","inline":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":200,"docvalue_fields":["discussion_id","user","date"],"_source":false} - library/XenForo/Error.php:240

Does this mean anything to you?
 
I solved it. Now I am getting loads of these:
Code:
Exception: {"suggest":{"text":"addiction","simple_phrase":{"phrase":{"field":"title","analyzer":"standard","size":"5","real_word_error_likelihood":"0.95","max_errors":0.5,"gram_size":2,"direct_generator":[{"field":"title","suggest_mode":"popular","min_word_length":"5","max_term_freq":0.65},{"field":"tag","suggest_mode":"popular","min_word_length":"5","max_edits":2}],"highlight":{"pre_tag":"<span style=\"font-style:italic\">","post_tag":"<\/span>"}}}}} - library/XenForo/Error.php:240
Generated By: Alfa1, 12 minutes ago

Code:
Exception: {"query":{"bool":{"must":[{"query_string":{"query":"addiciton","fields":["title^3","message"],"default_operator":"and"}}],"must_not":[{"exists":{"field":"not_visible"}}],"should":[{"bool":{"filter":[{"type":{"value":"ams_article"}}]}},{"bool":{"should":[{"type":{"value":"conversation_message"}},{"type":{"value":"conversation"}}],"filter":[{"term":{"recipients":1}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"page"}}]}},{"bool":{"should":[{"type":{"value":"post"}},{"type":{"value":"thread"}}],"filter":[{"terms":{"node":[13,43,173,312,505,504,313,516,480,144,513,494,184,518,69,191,301,127,68,57,129,152,368,153,130,164,369,167,154,165,370,168,155,166,371,169,128,156,372,163,171,170,274,55,390,146,180,54,143,462,304,305,302,481,482,484,483,41,75,473,71,42,60,503,138,45,438,56,424,506,282,284,417,280,288,420,281,425,440,441,463,464,465,196,279,221,223,224,277,297,354,293,355,356,296,294,222,295,357,358,359,217,225,360,216,361,362,218,363,220,375,278,219,273,211,212,213,214,215,228,227,237,238,229,239,230,240,231,241,242,243,232,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,236,264,265,266,267,233,234,268,269,235,270,271,272,290,292,291,226,474,70,195,85,51,74,188,142,394,39,49,335,520,433,435,17,187,38,66,64,186,185,65,67,328,380,434,319,437,84,431,330,27,379,402,401,400,352,29,333,407,3,18,285,19,136,135,88,515,286,325,7,331,409,410,411,412,106,493,26,414,418,479,413,405,62,125,416,415,22,283,24,80,92,119,446,50,20,289,30,422,40,175,443,52,321,118,76,93,117,32,320,353,35,408,36,421,23,25,502,501,500,8,79,332,28,485,33,406,161,123,395,396,403,397,124,162,334,398,404,399,287,432,21,517,336,377,445,89,423,91,90,327,392,393,37,107,132,134,172,133,510,509,511,46,148,147,58,315,316,318,317,343,344,150,345,149,111,115,86,61,108,114,158,109,157,112,82,87,14,208,210,389,447,347,442,47,200,204,207,206,203,202,205,197,348,349,198,201,350,199]}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"profile_post"}}]}},{"bool":{"filter":[{"type":{"value":"profile_post_comment"}}]}},{"bool":{"filter":[{"type":{"value":"resource_update"}}]}},{"bool":{"filter":[{"type":{"value":"ubs_blog_entry"}}]}},{"bool":{"filter":[{"type":{"value":"xengallery_media"}}]}}],"minimum_should_match":1}},"sort":[{"date":"desc"}],"size":1,"docvalue_fields":["discussion_id","user","date"],"_source":false} - library/XenForo/Error.php:240

Code:
Exception: {"query":{"function_score":{"boost_mode":"replace","query":{"bool":{"must":[{"query_string":{"query":"addiction","fields":["title^3","message"],"default_operator":"and"}}],"must_not":[{"exists":{"field":"not_visible"}}],"should":[{"bool":{"filter":[{"type":{"value":"ams_article"}}]}},{"bool":{"should":[{"type":{"value":"conversation_message"}},{"type":{"value":"conversation"}}],"filter":[{"term":{"recipients":1}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"page"}}]}},{"bool":{"should":[{"type":{"value":"post"}},{"type":{"value":"thread"}}],"filter":[{"terms":{"node":[13,43,173,312,505,504,313,516,480,144,513,494,184,518,69,191,301,127,68,57,129,152,368,153,130,164,369,167,154,165,370,168,155,166,371,169,128,156,372,163,171,170,274,55,390,146,180,54,143,462,304,305,302,481,482,484,483,41,75,473,71,42,60,503,138,45,438,56,424,506,282,284,417,280,288,420,281,425,440,441,463,464,465,196,279,221,223,224,277,297,354,293,355,356,296,294,222,295,357,358,359,217,225,360,216,361,362,218,363,220,375,278,219,273,211,212,213,214,215,228,227,237,238,229,239,230,240,231,241,242,243,232,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,236,264,265,266,267,233,234,268,269,235,270,271,272,290,292,291,226,474,70,195,85,51,74,188,142,394,39,49,335,520,433,435,17,187,38,66,64,186,185,65,67,328,380,434,319,437,84,431,330,27,379,402,401,400,352,29,333,407,3,18,285,19,136,135,88,515,286,325,7,331,409,410,411,412,106,493,26,414,418,479,413,405,62,125,416,415,22,283,24,80,92,119,446,50,20,289,30,422,40,175,443,52,321,118,76,93,117,32,320,353,35,408,36,421,23,25,502,501,500,8,79,332,28,485,33,406,161,123,395,396,403,397,124,162,334,398,404,399,287,432,21,517,336,377,445,89,423,91,90,327,392,393,37,107,132,134,172,133,510,509,511,46,148,147,58,315,316,318,317,343,344,150,345,149,111,115,86,61,108,114,158,109,157,112,82,87,14,208,210,389,447,347,442,47,200,204,207,206,203,202,205,197,348,349,198,201,350,199]}}],"minimum_should_match":1}},{"bool":{"filter":[{"type":{"value":"profile_post"}}]}},{"bool":{"filter":[{"type":{"value":"profile_post_comment"}}]}},{"bool":{"filter":[{"type":{"value":"resource_update"}}]}},{"bool":{"filter":[{"type":{"value":"ubs_blog_entry"}}]}},{"bool":{"filter":[{"type":{"value":"xengallery_media"}}]}}],"minimum_should_match":1}},"script_score":{"script":{"params":{"now":1486482449,"halflife":5184000},"lang":"groovy","inline":"_score \/ pow(2.0F, min(10.0F * halflife, abs(now - doc['date'].value)) \/ halflife)"}}}},"sort":[{"_score":"desc"},{"date":"desc"}],"size":200,"docvalue_fields":["discussion_id","user","date"],"_source":false} - library/XenForo/Error.php:240

Does this mean anything to you?
Can you PM me the stack-trace? I think there should be more errors about the number of search terms.

I think I know the issue, as there are too many nodes/forums and what I'm doing doesn't scale :(


Is this addon compatible with ES 5.2 ?
I'm using it with Elastic Search 5.2! But I don't have nearly that many forums.
 
Last edited:
I'll work on a more efficient solution soon, but there is a workaround.

Is this addon compatible with ES 5.2 ?
You will likely need to adjust the maximum clause count in your elastic search config (ie /etc/elasticsearch/elasticsearch.yml) (ES 5.x)
Code:
indices.query.bool.max_clause_count: 4096

for ES 0.x - 2.x ;
Code:
index.query.bool.max_clause_count: 4096
 
In Elastic Search Essentials options, we can set 'Content types to autocomplete'. But only threads are available.
No media, resources, pages, help pages, forum nodes. Could you please add this?
 
In Elastic Search Essentials options, we can set 'Content types to autocomplete'. But only threads are available.
No media, resources, pages, help pages, forum nodes. Could you please add this?
Each content type requires a bit of work to implement, I haven't had time to implement this sorry.
 
Would it be possible to implement a "threads started by user" search?

Right now, you can search for a user's content, and even display results by threads, but you can't filter that to only threads that the user started.
 
Top Bottom