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

Add the ability to retrieve fields from field data using fielddata_fields #4728

Closed
wants to merge 1 commit into from

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Jan 14, 2014

Adds a new FetchSubPhase, FieldDataFieldsFetchSubPhase, which loads the
field data cache for a field and returns an array of values for the
field.

Also removes a doc['<field>'] workaround no longer needed in field
name resolving.

Closes #4492

hitContext.hit().fields().put(field.name(), hitField);
}
FieldMapper mapper = context.mapperService().smartNameFieldMapper(field.name());
mapper.isNumeric();
Copy link
Member

Choose a reason for hiding this comment

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

seems like a leftover?

Copy link
Member Author

Choose a reason for hiding this comment

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

Whoops yes, good catch. I'll remove this.

@kimchy
Copy link
Member

kimchy commented Jan 21, 2014

LGTM

Adds a new FetchSubPhase, FieldDataFieldsFetchSubPhase, which loads the
field data cache for a field and returns an array of values for the
field.

Also removes `doc['<field>']` and `_source.<field>` workaround no longer
needed in field name resolving.

Closes elastic#4492
@dakrone
Copy link
Member Author

dakrone commented Jan 21, 2014

Merged to 1.x and master (2.0)

@dakrone dakrone closed this Jan 21, 2014
@s1monw
Copy link
Contributor

s1monw commented Jan 21, 2014

I think we should merge this into 1.0 as well WDYT?

@kimchy
Copy link
Member

kimchy commented Jan 21, 2014

++ on 1.0

@s1monw
Copy link
Contributor

s1monw commented Jan 21, 2014

let's do it then...

@dakrone
Copy link
Member Author

dakrone commented Jan 21, 2014

Pushed to 1.0 in b3060af also.

@dakrone dakrone deleted the 4492-target-field-retrieval branch April 21, 2014 22:58
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

Successfully merging this pull request may close these issues.

Add _source, _doc and _field support to fields
3 participants