Do I need to send data to Elasticsearch that I don't need for answering search requests?

Ahmad Nabil

Suppose I have a client with name, email, company attributes and I only need to search the name and email attributes.

Do I still need to send company attribute to elasticsearch and set index to false? or just send the required attributes only?

Mark Walkom

typically you would just index the entire document here. unless you have a massive data set (ie TBs), then the amount of savings you have would be minimal

and, from experience, there's a likely chance that someone will come along and ask to now search the company field, which means you will need to reindex everything to allow that

that said, yes you can definitely take that approach

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

What Do I Do When I don't know the Data Type I'll Need?

If I don't send session ID by url do I need to cycle my session id on login

I need to send files and data through FastAPI. I'm trying to send requests but couldn't get it to work

Why do I need to add "[0]" to my data to get it to render, if I don't, there is an error?

C# - when do I need override? When don't I need it?

Why do I need the keyword TABLE in this dynamic query although I don't need in a normal query

How to accelerate C#/Linq query? [i don't need to get data, i need to get condition]

How do I do a Cross Join when I don't have all the columns I need?

Do I have to use redux saga to fetch from an API if I don't need to store the data in the redux store?

Is Next Bad to Use if I Don't Need it?

I don't need django tables by default

i have a word from my page i need to search it and replace but my code don't working

How do I exclude some I/O variables I don't need from being stored in memory?

Docker with Kibana and elasticsearch ! Do I need logstash?

Do I Need Nullmailer-send running?

Do i need a 365 subscription to send an email?

Internal HTTP request between two VMs in Azure - is it secure by default or do I need to send HTTPS requests?

Why do I need +-1 in a Binary Search?

How do I implement an interface if I don't need all of its functions?

Do I need the C runtime library if I don't call any standard library functions?

Why do I need import React statement even if I don't use React explicitly?

Do I need to close Response body of http request even if I don't read it?

Angular 8 do I need to subscribe to a request if I don't care about the response

When do I need to use an executor for async code? What happens when I don't (but should)?

Angular CLI dependencies - why do I need to install @angular/router if I don't use it?

Do I need to fix my weirdo partitions? I don't have root or /home

how do I go about removing all the language packs I don't need

I need iOS screenshots for devices I don't have

What should I do if I need special analyzer in ElasticSearch