Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to maping to custom using Nest #729

Closed
crynut84 opened this issue Jun 19, 2014 · 2 comments
Closed

how to maping to custom using Nest #729

crynut84 opened this issue Jun 19, 2014 · 2 comments

Comments

@crynut84
Copy link

NEST is a high level elasticsearch client. it's very usefull. thank you .

I use Image Plugin for Elasticsearch(https://github.com/kzwang/elasticsearch-image)

I want Image plugin Mapping. How can I do that?

--exsample--
curl -XPUT 'localhost:9200/test/test/_mapping' -d '{
"test": {
"properties": {
"my_img": {
"type": "image",
"feature": {
"CEDD": {
"hash": "BIT_SAMPLING"
},
"JCD": {
"hash": ["BIT_SAMPLING", "LSH"]
},
"FCTH": {}
},
"metadata": {
"jpeg.image_width": {
"type": "string",
"store": "yes"
},
"jpeg.image_height": {
"type": "string",
"store": "yes"
}
}
}
}
}
}'

Mpdreamz added a commit that referenced this issue Jul 9, 2014
@Mpdreamz
Copy link
Member

Mpdreamz commented Jul 9, 2014

Thank you @hojinjun this was not possible as of yet.

I just pushed support for this to our develop branch:

https://github.com/elasticsearch/elasticsearch-net/blob/develop/src/Tests/Nest.Tests.Unit/Core/Map/CustomMapping/ImagePluginMappingTests.cs#L24

Should be available in our next release or in a myget continous drop (https://www.myget.org/gallery/elasticsearch-net)

@crynut84
Copy link
Author

Thanks @Mpdreamz :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants