# Not able to index large csv files using java bulk api

**URL:** https://discuss.elastic.co/t/not-able-to-index-large-csv-files-using-java-bulk-api/179328
**Category:** Elasticsearch
**Created:** [May 2, 2019, 9:42am UTC](https://discuss.elastic.co/t/not-able-to-index-large-csv-files-using-java-bulk-api/179328 "2019-05-02T09:42:54Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![sahilkumar](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sahilkumar](https://discuss.elastic.co/u/sahilkumar)
#### Post date: [May 25, 2019, 7:46am UTC](https://discuss.elastic.co/t/not-able-to-index-large-csv-files-using-java-bulk-api/179328/7 "2019-05-25T07:46:24Z")

</div>

> [@sahilkumar](#):
>
> I have a file containing keywords which I need to search for in the index. It is a csv file containing 3 headers - keyword,brandName,bucketName
> 
> What I need to do is search for the keyword in all fields of the index if brandName and bucketName values are '\*', and if they are something else then I need to search the keyword in the fields whose value matches the bucketName and brandName. My index contains many fields includin brandName and bucketName. Please advise as to which search query I should use. I am not able to use multimatch query since number of fields for a document is not fixed.

Done.

> [@Search for a keyword in all fields of an index according to given conditions](https://discuss.elastic.co/t/search-for-a-keyword-in-all-fields-of-an-index-according-to-given-conditions/182749):
>
> I have a file containing keywords which I need to search for in the index. It is a csv file containing 3 headers - keyword,brandName,bucketName What I need to do is search for the keyword in all fields of the index if brandName and bucketName values are '\*', and if they are something else then I need to search the keyword in the fields whose value matches the bucketName and brandName. My index contains many fields including brandName and bucketName. Please advise as to which search query I sho…

---

_[View the full topic](https://discuss.elastic.co/t/not-able-to-index-large-csv-files-using-java-bulk-api/179328)._
