How can we implement painless query search condition for multi fields

Dear All .

I have 8-fields in index and we want to search all fields but condition here is :

some time we want to search only 3,4 fields only but result should be come based on accurate match fields : value .

but painless query should cover all 8-fields for searching purpose .

Thanks
HadoopHelp

It's unclear from your brief description what you are trying to accomplish. Could you please elaborate with a little more detail? Why do you need painless instead of existing queries to add restrictions based on your 8 fields?

As explained in this thread I believe you need to write some code in your application to handle this. I do not think using painless is the right way to go.

Hi @Christian_Dahlqvist

Thanks

now we are going through JavaScript to handle this issue and almost this is working fine but still waiting for end user GUI verification.

Thanks
HadoopHelp