Comments (3)
Could you share more details on your env? I am not able to reproduce the error with the following:
new esb.BoolQuery()
.should([
new esb.MultiMatchQuery(['field1', 'field2'], 'search_str')
.type('cross_fields')
.operator('and')
])
Output:
{
"bool": {
"should": {
"multi_match": {
"query": "search_str",
"fields": ["field1", "field2"],
"type": "cross_fields",
"operator": "and"
}
}
}
}
You can test this here - https://elastic-builder.js.org/.
Since the error is not being reproduced with a clean env, I can only guess that it has to with the way elastic-builder
is being used in your project.
from elastic-builder.
I'm sorry. I checked and there's no error running the actual code.
But strangely, my test code will cause errors.
When I check some things, if I use the should.js library, an error occurs.
should.js is one of the assertion libraries.
Maybe it was caused by an impact on the should.js library.
I registered the issue because of an error in the test code I wrote, but I didn't think it would be because it was affected by a third-party library.
I'm sorry and thank you!
I'll close the issue.
from elastic-builder.
I can't find any relevant blog post regarding this but I recall having read somewhere that should.js
does something unexpected for methods named should
. Thanks for responding and closing the issue.
from elastic-builder.
Related Issues (20)
- Support distance_feature HOT 2
- Support to runtime_mappings HOT 2
- adding support for weighted average aggregation HOT 2
- Error: Cannot find module 'util' HOT 2
- adding-filters-dynamically HOT 1
- Unable to create use score script inside the function score query HOT 2
- Remove dependency on Node.js specific modules HOT 1
- no support - intervals
- Support hardBounds in HistogramAggregationBase
- Elasticsearch 8.x compatibility? HOT 2
- Does it support AWS opensearch? HOT 1
- Support for case_insensitive to prefixQuery HOT 2
- Support for GeoHexGridAggregation
- case_insensitive for term query? HOT 3
- Highlight.max_analyzed_offset not included in Highlight object HOT 1
- TypeError: Cannot convert undefined or null to object HOT 2
- Support for auto_generate_synonyms_phrase_query to Query String Query
- Rank feature support HOT 1
- Vulnerability in old lodash dependencies. HOT 1
- Support lang and params in RuntimeField script for runtime_mappings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastic-builder.