Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Return More Specific Mapping Types from Search Requests #256

Open
davidlundgren opened this issue Aug 28, 2014 · 1 comment
Open

Return More Specific Mapping Types from Search Requests #256

davidlundgren opened this issue Aug 28, 2014 · 1 comment

Comments

@davidlundgren
Copy link
Contributor

Return more specific MappingTypes than the elasticutils.DefaultMappingType when searching across multiple types.

For example, one might want to do something like:

class MyMappingType(MappingType, Indexable):
  def foo(self):
    # logic ...

q = S().indexes('thisindex', 'thatindex')
for hit in q[:10]:
  print hit.foo()
@krs-wraus
Copy link

Going to agree that this is something that would be very helpful. Currently there's no way to get more specific mapping types when searching across multiple indexes or doctypes, which can cause a lot of frustration when there's any kind of custom code in the mapping type itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants