Safe to set doc_values: true on existing index?

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yes, it will do exactly that.

On 4 March 2015 at 10:17, Justin Zhu haoranjzhu@gmail.com wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9mTNHoOX5wyaqP5iwJ_S0abtQHosCzQXbTryzBk-tmJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Excellent. Noticed Boolean is unsupported right now, can we add the
doc_values: true anyways for future use?:

On Tuesday, March 3, 2015 at 3:55:30 PM UTC-8, Mark Walkom wrote:

Yes, it will do exactly that.

On 4 March 2015 at 10:17, Justin Zhu <haora...@gmail.com <javascript:>>
wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c492600a-eb4a-4ad2-8893-a079f79eab1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I read the manual, and I still don't quite get what doc_values is. Anyone
can explain it better than the manual?

On Tuesday, March 3, 2015 at 3:17:13 PM UTC-8, Justin Zhu wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c5ed7e7b-e4a6-49fc-9060-fd2837f3b93c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

It replaces field data and instead of storing things in heap, it stores
them on disk. You take a minor performance hit but you get a lot more back
by freeing up your heap.

On 4 March 2015 at 16:13, Dennis gearond@gmail.com wrote:

I read the manual, and I still don't quite get what doc_values is. Anyone
can explain it better than the manual?

On Tuesday, March 3, 2015 at 3:17:13 PM UTC-8, Justin Zhu wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/c5ed7e7b-e4a6-49fc-9060-fd2837f3b93c%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/c5ed7e7b-e4a6-49fc-9060-fd2837f3b93c%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-kx7J2uG%2BmmbQ0jv2vrMRLyYQY109wXyK2dU%2BAVMRdiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Unfortunately, doc values cannot be added on an existing index. However it
would work if you have eg. daily indices and change your index template so
that new indices have doc values enabled.

On the other hand, if you want to add doc values to an existing index, you
would need to reindex.

On Wed, Mar 4, 2015 at 12:17 AM, Justin Zhu haoranjzhu@gmail.com wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4-hATPP35%3DVf3JTxYOoa5TS8LssSUHnsbv6nzu2YvF_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

After chatting with Adrien about this and how the code works, I'll defer to
his greater knowledge.
On 04/03/2015 9:04 pm, "Adrien Grand" adrien.grand@elasticsearch.com
wrote:

Unfortunately, doc values cannot be added on an existing index. However it
would work if you have eg. daily indices and change your index template so
that new indices have doc values enabled.

On the other hand, if you want to add doc values to an existing index, you
would need to reindex.

On Wed, Mar 4, 2015 at 12:17 AM, Justin Zhu haoranjzhu@gmail.com wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4-hATPP35%3DVf3JTxYOoa5TS8LssSUHnsbv6nzu2YvF_Q%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4-hATPP35%3DVf3JTxYOoa5TS8LssSUHnsbv6nzu2YvF_Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_Ga%3Dh8cKS%2BbBztcG8N5QveK0%3DqM4e49LFPjZQXk79Phg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thanks for the info Adrien & Mark. Looks like we'll just reindex.

On Wednesday, March 4, 2015 at 2:43:15 AM UTC-8, Mark Walkom wrote:

After chatting with Adrien about this and how the code works, I'll defer
to his greater knowledge.
On 04/03/2015 9:04 pm, "Adrien Grand" <adrien...@elasticsearch.com
<javascript:>> wrote:

Unfortunately, doc values cannot be added on an existing index. However
it would work if you have eg. daily indices and change your index template
so that new indices have doc values enabled.

On the other hand, if you want to add doc values to an existing index,
you would need to reindex.

On Wed, Mar 4, 2015 at 12:17 AM, Justin Zhu <haora...@gmail.com
<javascript:>> wrote:

Would this start building the doc values structure for new documents
indexed and not prior docs?

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/189c9ede-cd7f-408e-8bf2-08a858d452be%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4-hATPP35%3DVf3JTxYOoa5TS8LssSUHnsbv6nzu2YvF_Q%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4-hATPP35%3DVf3JTxYOoa5TS8LssSUHnsbv6nzu2YvF_Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f6987dcd-e644-4b6c-96f0-40e0999a6b0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.