Comments (5)
What do you mean by array fields?
from elasticsearch-langdetect.
Array Type http://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-array-type.html
from elasticsearch-langdetect.
That does not make any sense. Language detection is only possible in a string field.
from elasticsearch-langdetect.
Not sure how it makes no sense. Arrays can hold strings. You can define it as a LIST of strings. The documentation example cannot be any more clear
from elasticsearch-langdetect.
If you want to check multiple strings, you can get multiple results, and this can no longer be done in a single detect operation. So the result would be confusing for multiple languages in multiple strings and this makes no sense.
For multivalued strings, the plugin works only if the detected language is the same in all strings. It merely checks the first string. E.g.
curl -XDELETE 'localhost:9200/test'
curl -XPUT 'localhost:9200/test'
curl -XPOST 'localhost:9200/test/article/_mapping' -d '
{
"article" : {
"properties" : {
"content" : { "type" : "langdetect" }
}
}
}
'
curl -XPUT 'localhost:9200/test/article/1' -d '
{
"title" : "Some title",
"content" : [
"Oh, say can you see by the dawn`s early light",
"What so proudly we hailed at the twilight`s last gleaming?"
]
}
'
curl -XGET 'localhost:9200/test/_refresh'
curl -XPOST 'localhost:9200/test/_search' -d '
{
"query" : {
"term" : {
"content.lang" : "en"
}
}
}
'
from elasticsearch-langdetect.
Related Issues (20)
- Seems like landdetect 5.3 does not work or documentation has incorrect examples HOT 6
- problem with decoding escaped unicode string HOT 2
- Error installing 5.3.0.2 plugin on ES 5.3 HOT 2
- Detection problem with Unicode escaped JSON HOT 2
- Am I using the short-profile correctly? current example outdated HOT 1
- ETA for langdetect for ES 5.3.2 HOT 1
- REST API returns an application/yaml response
- ES 5.4 HOT 3
- Is it possible to update mapping for "langdetect" type?
- Can't store langdetect field ? HOT 1
- Can't aggregate ? HOT 2
- plugin [langdetect] is incompatible with version [5.4.1]; was designed for version [5.4.0]
- ES 5.5
- High memory usage with langdetect
- Search language not found HOT 1
- How to set config in elasticsearch.yml
- ES 5.6 support
- mapper_parsing_exception for some languages
- Cannot start elasticsearch when change language file
- ES 6.x support for language detection? 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 elasticsearch-langdetect.