Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8750835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:56:07+00:00 2026-06-13T12:56:07+00:00

Is it possible to register query (like the percolate process) and call them by

  • 0

Is it possible to register query (like the percolate process) and call them by name to execute them.
I am building an application that will let the user save search query associated with a label. I would like to save the query generated by the filter in ES.

If I save the query in an index, I have to call ES first to retrieve the query, extract the field containing the query and then call ES again to execute it. Can I do it in one call ?

The other solution is to register queries (labels with _percolator with an identifier of the user:
/_percolate/transaction/user1_label1

{
  "userId": "user1",
  "query":{
     "term":{"field1":"foo" }
   }
}

and when there is a new document use the percolator in a non indexing mode (filtered per userId) to retrieve which query match, and then update the document by adding a field “label”:[“user1_label1”, “user1_label2”] and finaly index the document. SO the labelling is done at indexing time.

What do you think ?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:56:08+00:00Added an answer on June 13, 2026 at 12:56 pm

    Try Filter Aliases.

    curl -XPOST 'http://localhost:9200/_aliases' -d '
    {
        "actions" : [
             {
                "add" : {
                     "index" : "the_real_index",
                     "alias" : "user1",
                     "filter" : { "term" : { "field1" : "foo" } }
                }
            }
        ]
    }'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A Castle Windsor question: Is it possible to register a class that has an
Is it possible to register custom error handler in python - like http://php.net/set_error_handler in
Is it possible to register a global broadcast receiver that gets notified every time
Is it possible to register them all at once with a simple code? Or
Possible Duplicate: Looping through mysql_fetch_array in PHP I have a simple join query that
Does anyone know that is it possible to register (add) declaration of service in
In the Windsor IOC container is it possible to register a type that I've
Is it possible to have a image that will change if an sql record
Possible Duplicate: Register the Android App with C2DM so, I've been looking all over
I was wondering is it possible to register a broadcast receiver to receive two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.