# How to use a full text index with different lucene analyzers for indexing and searching in neo4j?

**URL:** <https://community.neo4j.com/t/how-to-use-a-full-text-index-with-different-lucene-analyzers-for-indexing-and-searching-in-neo4j/10742>\
**Category:** Procedures & APOC\
**Tags:** index\
**Created:** [October 7, 2019, 11:56am UTC](https://community.neo4j.com/t/how-to-use-a-full-text-index-with-different-lucene-analyzers-for-indexing-and-searching-in-neo4j/10742 "2019-10-07T11:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alizadehei](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/alizadehei/32/9488_2.png) [@alizadehei](https://community.neo4j.com/u/alizadehei)\
**Post date:** [October 7, 2019, 11:56am UTC](https://community.neo4j.com/t/how-to-use-a-full-text-index-with-different-lucene-analyzers-for-indexing-and-searching-in-neo4j/10742/1 "2019-10-07T11:56:35Z")

</div>

For certain use cases, e.g. with NGram or EdgeNGram tokenizers, it should be possible to define 2 different analyzers for a manual index, one for the index task and one for the search/query task

---

<div class="post-metadata">

**Author:** ![stefan.armbruster](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/stefan.armbruster/32/74_2.png) [@stefan.armbruster](https://community.neo4j.com/u/stefan.armbruster)\
**Post date:** [October 9, 2019, 5:58am UTC](https://community.neo4j.com/t/how-to-use-a-full-text-index-with-different-lucene-analyzers-for-indexing-and-searching-in-neo4j/10742/2 "2019-10-09T05:58:57Z")

</div>

A fulltext index always has exactly one analyzer. You could of course create two fulltext indexes over the same label/property combination each using a different analyzer.

---

<div class="post-metadata">

**Author:** ![andrey](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/andrey/32/7839_2.png) [@andrey](https://community.neo4j.com/u/andrey)\
**Post date:** [December 29, 2019, 11:53am UTC](https://community.neo4j.com/t/how-to-use-a-full-text-index-with-different-lucene-analyzers-for-indexing-and-searching-in-neo4j/10742/3 "2019-12-29T11:53:21Z")

</div>

It doesn't seem to be possible to add another fulltext index with the same label/property combo but with a different analyzer.

fulltext with english analyzer

```auto
CALL db.index.fulltext.createNodeIndex("quickSearchEnglish",
  ["User", "Employee", "Company", "Agency"],
  ["userId", "firstName", "lastName", "employeeId", "emailAddress", "companyId", "name", "agencyId"],
  {
    eventually_consistent: true,
    analyzer: "english"
  }
)

```

fulltext with dutch analyzer

```auto
CALL db.index.fulltext.createNodeIndex("quickSearchDutch",
  ["User", "Employee", "Company", "Agency"],
  ["userId", "firstName", "lastName", "employeeId", "emailAddress", "companyId", "name", "agencyId"],
  {
    eventually_consistent: true,
    analyzer: "dutch"
  }
)

```

outcome

```auto
Neo.ClientError.Schema.IndexAlreadyExists

There already exists an index NODE:label[1], label[0], label[3], label[2](property[8], property[4], property[3], property[2], property[17], property[19], property[18], property[10], property[11], property[5]).

```

Any ideas how to make it work?
