elastic_transformers icon indicating copy to clipboard operation
elastic_transformers copied to clipboard

RequestError: RequestError(400, 'search_phase_execution_exception', 'runtime error')

Open ScottishFold007 opened this issue 5 years ago • 2 comments
trafficstars

when I run Searching_with_ElasticTransformers.ipynb, this bug showed up: import logging logging.getLogger().setLevel(logging.DEBUG)

query='4G智能移动单兵'

print('CONTEXTUAL SEARCH RESULTS...') df1=et.search(query,'Title',type='dense',embedder=embed_wrapper, size = 1000) display(select_search_results(df1))

image Then, What is the cause of this bug?

ScottishFold007 avatar Oct 13 '20 08:10 ScottishFold007

Just install ES 7.8, the notebook's output return normally. @ScottishFold007 https://www.elastic.co/guide/en/elasticsearch/reference/7.8/docker.html

lizekui avatar Sep 21 '22 08:09 lizekui

self.es.search( index=index_name, body={ "size": size, "query": script_query, "_source": {"includes": [f'{field}_embedding']} } )

MichaelMachine avatar Nov 07 '22 09:11 MichaelMachine