# Integrating elastic search with git

**URL:** <https://discuss.elastic.co/t/integrating-elastic-search-with-git/169474>\
**Category:** Elasticsearch\
**Created:** [February 21, 2019, 6:12pm UTC](https://discuss.elastic.co/t/integrating-elastic-search-with-git/169474 "2019-02-21T18:12:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![styriver](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@styriver](https://discuss.elastic.co/u/styriver)\
**Post date:** [February 21, 2019, 6:12pm UTC](https://discuss.elastic.co/t/integrating-elastic-search-with-git/169474/1 "2019-02-21T18:12:28Z")

</div>

Hello I am going to be putting on a demo next week. I have one question and an issue.

1. Is it possible to configure elastic search to index branches as well as the default setting for a project?
2. It seems that if I add or import a project it does not index. If I manually run sudo gitlab-rake gitlab:elastic:index I see the results I expect.

The configuration is pretty basic nothing special. This is what I see when I run cluster health

\< [nicsgt6@vcss0004 es-tm-git-01]$ curl -XGET 127.0.0.1:9200/\_cluster/health?pretty  
{  
"cluster\_name" : "elasticsearch",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 6,  
"active\_shards" : 6,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 5,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 54.54545454545454  
} /\>

\< bootstrap.memory\_lock: true  
network.host: 127.0.0.1  
node.name: xxxxx-es-tm-git-01  
path.data: "/home/elasticsearch/data/es-tm-git-01"  
path.logs: "/home/elasticsearch/log/es-tm-git-01" /\>

---

<div class="post-metadata">

**Author:** ![styriver](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@styriver](https://discuss.elastic.co/u/styriver)\
**Post date:** [February 21, 2019, 6:17pm UTC](https://discuss.elastic.co/t/integrating-elastic-search-with-git/169474/2 "2019-02-21T18:17:28Z")

</div>

Just to add I have both of the boxes checked in git on the elastic search section. We are not using the GO indexer at this time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 21, 2019, 6:19pm UTC](https://discuss.elastic.co/t/integrating-elastic-search-with-git/169474/3 "2019-03-21T18:19:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
