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

Remove the ability to have custom per-field postings and doc values formats. #9741

Merged
merged 1 commit into from Feb 19, 2015

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Feb 18, 2015

This commit makes the postings_format and doc_values_format options of
mappings illegal on 2.0 and ignored on 1.x (meaning that the default postings
and doc values formats from the codec will be used in such a case).

This removes a fair amount of code.

Close #8746

@Override
public PostingsFormatProvider postingsFormatProvider() {
return this.completionPostingsFormatProvider;
public synchronized PostingsFormat postingsFormat(PostingsFormat in) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch with the sync here!

@s1monw
Copy link
Contributor

s1monw commented Feb 18, 2015

LGTM

@@ -237,3 +237,15 @@ curl -XGET 'localhost:9200/index/type/_search'
}
---------------

=== Codecs

It is not possible to specify per-field postings and doc values formats in the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Say "no longer possible" instead of "not possible"? You might also be more explicit about what "old indices" means. Also, typo: tail -> fail

@rjernst
Copy link
Member

rjernst commented Feb 18, 2015

LGTM too! Just a couple minor doc comments.

@rjernst
Copy link
Member

rjernst commented Feb 18, 2015

Also, can you regenerate one of the static bwc indexes with your changes to create-bwc-index.py? For now one should be fine (say 1.4.2 or 1.4.3). Eventually I hope to have a script that will regenerate all of them without so much manual labor.

@jpountz
Copy link
Contributor Author

jpountz commented Feb 19, 2015

Pushed a new commit that addresses @rjernst 's comments. Will push soon.

…values formats.

This commit makes the `postings_format` and `doc_values_format` options of
mappings illegal on 2.0 and ignored on 1.x (meaning that the default postings
and doc values formats from the codec will be used in such a case).

This removes a fair amount of code.

Close elastic#8746 elastic#9741
@jpountz jpountz merged commit 4708227 into elastic:master Feb 19, 2015
dadoonet added a commit to elastic/elasticsearch-mapper-attachments that referenced this pull request Feb 19, 2015
@clintongormley clintongormley changed the title Codecs: Remove the ability to have custom per-field postings and doc values formats. Remove the ability to have custom per-field postings and doc values formats. Jun 6, 2015
@clintongormley clintongormley added the :Search/Mapping Index mappings, including merging and defining field types label Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Search/Mapping Index mappings, including merging and defining field types v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove custom posting formats
4 participants