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

Support for nested field names #9

Open
lifeofzero opened this issue Jul 11, 2017 · 5 comments
Open

Support for nested field names #9

lifeofzero opened this issue Jul 11, 2017 · 5 comments

Comments

@lifeofzero
Copy link

Really great project! One thing I was curious about is supported nested field names. For example:

foo.bar
foo.baz
foo.zap

Our schema in Elasticsearch supports one-level nesting, and I was having hard time getting the following to work.

df.filter(df.foo.bar == 'jane').select('last_name', 'email','age').collect()

Any help or suggestions would be appreciated. If was searching directly against the ES REST API the filter looks like:

"query": {
"filtered": {
"query": {
"query_string": {
"query": "+foo.bar:jane",
"analyze_wildcard": true,
"lowercase_expanded_terms": false
}
}

@onesuper
Copy link
Owner

I'm Sorry. The nested field is not on the roadmap currently. But It is a good idea if we could utilize the query_string of ES to implement such feature.

@flexthink
Copy link

+1

@gsemet
Copy link

gsemet commented Oct 12, 2018

+1 would help a lot

@onesuper onesuper added this to the 0.6.0 milestone Mar 12, 2019
@onesuper
Copy link
Owner

We might use script filter instead as a workaround.

@LuisBlanche
Copy link

Hi thanks for this cool library !
does this issue include nested queries as such :

{'query':{
          'nested': {
                    'path': 'docs',  'query': {
                                              'match': {
                                                      'docs.feature': 'search_term'
                                                       }
                                            }
                         }
            }
}

?

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

No branches or pull requests

5 participants