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

Date math index names should work too when an index doesn't exist #13570

Merged

Conversation

martijnvg
Copy link
Member

Date math index names should also work when indexing documents into a non existing index.

* @return If the specified string is data math expression then this method returns the resolved expression.
*/
public String resolveDateMathExpression(String dateExpression) {
return dateMathExpressionResolver.resolveExpression(dateExpression, new Context(null, null));
Copy link
Member

Choose a reason for hiding this comment

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

the initialization of the context with two null arguments makes me wonder why we don't need those arguments there.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll add an inline comment why null is okay here.

@javanna
Copy link
Member

javanna commented Sep 23, 2015

left a small comment, LGTM otherwise

@martijnvg martijnvg force-pushed the date_math_expressions_for_create_index_api branch from 1f55b47 to d809bb5 Compare September 25, 2015 09:50
@martijnvg martijnvg force-pushed the date_math_expressions_for_create_index_api branch from d809bb5 to 04cfbe3 Compare September 25, 2015 10:06
@martijnvg martijnvg merged commit 04cfbe3 into elastic:master Sep 25, 2015
martijnvg added a commit that referenced this pull request Sep 25, 2015
martijnvg added a commit that referenced this pull request Sep 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates v2.0.0-rc1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants