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

ElasticSearch missing Problems Urgent help ---------thanks #132

Open
maoying1229 opened this issue Nov 3, 2015 · 1 comment
Open

ElasticSearch missing Problems Urgent help ---------thanks #132

maoying1229 opened this issue Nov 3, 2015 · 1 comment

Comments

@maoying1229
Copy link

maoying1229 commented Nov 3, 2015

def res = Goods.search([from: (params.offset), size: (params.max)]) {
    query:
    {
        bool {
            filtered:
            {
                query:
                {
                    must {
                        term('brand.name': 'name')
                    }
                }

                filter:
                {
                    should {
                        range { "priceForClass1"("gte": 0.0) }
                    }
                    should {
                        missing("field": 'priceForClass1')
                    }
                }
            }
        }
    }
}

Program error
I put " missing("field":'priceForClass1')" written off
missing("field":'priceForClass1') Whether the wording of questions

@puneetbehl
Copy link
Collaborator

Could you please describe it more clearly? It would be nice if you can create a sample application describing the problem.

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

2 participants