Hi All,
We are using elastic-search for our project. We would like to implement a
feature in our project using elastic search.
We want to make sure that all the saved documents in our project must
contain certain field(s) e.g.
{
USER_ID:"123"
USER_NAME:"Ashutosh"
}
In other words, if the document does not contain the mandatory fields e.g.
USER_ID, it will not be saved.
It will be helpful, if you share your ideas whether it is possible to
define mandatory filed(s) of a document in elastic search?
Thanks for your help.
Best,
Ashutosh
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
Hiya
This will have to be handled in your application
clint
On 15 May 2013 15:21, Ashutosh Bhattacharya <
ashutosh.bhattacharya.in@gmail.com > wrote:
Hi All,
We are using elastic-search for our project. We would like to implement a
feature in our project using Elasticsearch.
We want to make sure that all the saved documents in our project must
contain certain field(s) e.g.
{
USER_ID:"123"
USER_NAME:"Ashutosh"
}
In other words, if the document does not contain the mandatory fields e.g.
USER_ID, it will not be saved.
It will be helpful, if you share your ideas whether it is possible to
define mandatory filed(s) of a document in Elasticsearch?
Thanks for your help.
Best,
Ashutosh
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
Hi Clinton,
Thank you for your quick response. Presently, we are handling it in our
application but it would have been better for us if we could have difined
some kind of mappiing for the elasticsearch index to make the fielad(s)
mandatory.
Regards,
Ashutosh
On Wed, May 15, 2013 at 3:24 PM, Clinton Gormley clint@traveljury.com wrote:
Hiya
This will have to be handled in your application
clint
On 15 May 2013 15:21, Ashutosh Bhattacharya <
ashutosh.bhattacharya.in@gmail.com > wrote:
Hi All,
We are using elastic-search for our project. We would like to implement a
feature in our project using Elasticsearch.
We want to make sure that all the saved documents in our project must
contain certain field(s) e.g.
{
USER_ID:"123"
USER_NAME:"Ashutosh"
}
In other words, if the document does not contain the mandatory fields
e.g. USER_ID, it will not be saved.
It will be helpful, if you share your ideas whether it is possible to
define mandatory filed(s) of a document in Elasticsearch?
Thanks for your help.
Best,
Ashutosh
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
Best,
Ashutosh Bhattacharya
Kreutzer Str. 4
50672 Köln, Deutschland
Mob : (0049) 0151 29475229
Email: ashutosh.bhattacharya.in@gmail.com
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
Ivan
(Ivan Brusic)
May 16, 2013, 5:04am
4
The best you can do is reject any documents with fields not explicitly
declared in your mapping. Like Clinton said, mandatory fields are best
handled at the client side.
--
Ivan
On Wed, May 15, 2013 at 6:32 AM, Ashutosh Bhattacharya <
ashutosh.bhattacharya.in@gmail.com > wrote:
Hi Clinton,
Thank you for your quick response. Presently, we are handling it in our
application but it would have been better for us if we could have difined
some kind of mappiing for the elasticsearch index to make the fielad(s)
mandatory.
Regards,
Ashutosh
On Wed, May 15, 2013 at 3:24 PM, Clinton Gormley clint@traveljury.com wrote:
Hiya
This will have to be handled in your application
clint
On 15 May 2013 15:21, Ashutosh Bhattacharya <
ashutosh.bhattacharya.in@gmail.com > wrote:
Hi All,
We are using elastic-search for our project. We would like to implement
a feature in our project using Elasticsearch.
We want to make sure that all the saved documents in our project must
contain certain field(s) e.g.
{
USER_ID:"123"
USER_NAME:"Ashutosh"
}
In other words, if the document does not contain the mandatory fields
e.g. USER_ID, it will not be saved.
It will be helpful, if you share your ideas whether it is possible to
define mandatory filed(s) of a document in Elasticsearch?
Thanks for your help.
Best,
Ashutosh
--
You received this message because you are subscribed to the Google
Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
Best,
Ashutosh Bhattacharya
Kreutzer Str. 4
50672 Köln, Deutschland
Mob : (0049) 0151 29475229
Email: ashutosh.bhattacharya.in@gmail.com
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .