Comments (10)
I'm not too sure about the issue, or if it has been fixed.
If you can create a test/project that reproduces the issue, or a pull request I'll be happy to take a look at it.
Otherwise, it'll take me a little more time to investigate.
from elasticsearch-grails-plugin.
Absolutely I'll do that.
On Feb 23, 2014 9:58 AM, "Noam Y. Tenne" [email protected] wrote:
I'm not too sure about the issue, or if it has been fixed.
If you can create a test/project that reproduces the issue, or a pull
request I'll be happy to take a look at it.
Otherwise, it'll take me a little more time to investigate.Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-35827111
.
from elasticsearch-grails-plugin.
Test app here:
https://github.com/emfanitek/elasticsearch-gorm-plugin/blob/master/test-apps/es-bigdecimal.zip
Didn't know how to attach a binary file.
The app fails while starting up with the error:
[elasticsearch[Proteus][bulk][T#5]] ERROR index.IndexRequestQueue - Failed bulk item: MapperParsingException[object mapping for [author] tried to parse as object, but got EOF, has a concrete value been provided to it?]
from elasticsearch-grails-plugin.
Excellent, thanks much!
from elasticsearch-grails-plugin.
Replacing
static searchable = true
with:
static searchable = {
age converter:'long'
}
Allows mapping and indexing, but the converter is ignored due to this piece of code in ElasticSearchMappingFactory
} else if (scpm.getConverter() != null) {
// Use 'string' type for properties with custom converter.
// Arrays are automatically resolved by ElasticSearch, so no worries.
propType = 'string'
Why can't we use this instead?
} else if (scpm.getConverter() != null) {
// Arrays are automatically resolved by ElasticSearch, so no worries.
String requestedConverter = scpm.getConverter()
propType = (requestedConverter in SUPPORTED_FORMAT) ? requestedConverter : 'string'
from elasticsearch-grails-plugin.
BTW, isn't the 'string' converter preferable over 'long' for BigDecimal?
Doesn't conversion to long lose precision?
from elasticsearch-grails-plugin.
Well, that depends on what you wish to do with it. If you wish to use elastic search's ability to claculate totals and means, you need a numeric value. So string is no good in that case. Bigdecimal is multi purpose, can contain decimals or not, so we need to leave it to the application to map it to whatever primitive ES type necessary: string, double, or long.
from elasticsearch-grails-plugin.
I've deployed a new snapshot including a fix for the mapping, care to try it out before I release?
You can find it here
from elasticsearch-grails-plugin.
Great! I will, as soon as I have a moment!
On Wed, Mar 5, 2014 at 9:32 AM, Noam Y. Tenne [email protected]:
I've deployed a new snapshot including a fix for the mapping, care to try
it out?
You can find it herehttp://noams.artifactoryonline.com/noams/grails-elasticsearch-plugin-snapshots/org/grails/plugins/elasticsearch-gorm/0.0.2.x-SNAPSHOT/Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-36720024
.
from elasticsearch-grails-plugin.
Will be included in the next release
from elasticsearch-grails-plugin.
Related Issues (20)
- Lower Case, Upper Case
- ElasticSearch 1.2.1 Not Found, is documentation wrong? HOT 2
- cannot connect to mongodb with mongodb plugin of grails HOT 1
- A fresh install needs elasticSearch.datastoreImpl configured but it's easy to miss in the documentation
- ElasticSearch fails in Grails 3.3.0.M2 HOT 13
- Index Type with composite key
- Dosent start up in Grails 3.2.8 HOT 5
- DoBulkRequest in descending id order
- elasticSearch.index.name does not seem to be working HOT 2
- PooledConnection has already been closed exception while updating HOT 4
- Error Creating bean with name 'indexRequestQueue' HOT 2
- Setting index name fails in 1.4.1 with grails 3.2.x HOT 7
- bulk index in large number of data will stop indexing at some point HOT 6
- Intermittent indexing issue with ElasticSearch 2.4.0.RC1 and Grails 3.3.2 HOT 4
- Indexing issue with ElasticSearch 2.4.0 and Grails 3.3.2 HOT 7
- Support Elastic Search 5.6.7
- FEATURE: elasticSearchService.search return object instead of Map
- How do you search collections in a domain class?
- Feature request: The ability to annotate a collection to be stored as JSON array
- When will support Grails 3.3.3 + Elasticsearch 1.6 HOT 2
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-grails-plugin.