# Site or App Search? Indexing issues

**URL:** <https://discuss.elastic.co/t/site-or-app-search-indexing-issues/173306>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [March 21, 2019, 12:32pm UTC](https://discuss.elastic.co/t/site-or-app-search-indexing-issues/173306 "2019-03-21T12:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![3morrow](https://avatars.discourse-cdn.com/v4/letter/3/43a26b/32.png) [@3morrow](https://discuss.elastic.co/u/3morrow)\
**Post date:** [March 21, 2019, 12:32pm UTC](https://discuss.elastic.co/t/site-or-app-search-indexing-issues/173306/1 "2019-03-21T12:32:46Z")

</div>

Trying to enable site-wide search across a database of Shakespeare films; each film has slightly different timings for these lines, and the interactive transcripts are stored along with their corresponding video as JSONs in an S3 bucket.

Lines in a script are stored as anchor tags for users to jump to a particular line and share it (eg line 606 of Macbeth has an anchor link of [https://scriptspeare.co.uk/Tragedy/Macbeth/#606=line](https://scriptspeare.co.uk/Tragedy/Macbeth/#606=line) when clicked on). Search bar should display each line as a result (for example, typing in ‘to be’ should bring up ‘to be or not to be, that is the question’ (#1611=line).

Currently stuck on a few bugs in Elastic's Site Search trial (no lines show up! photo attached), but thinking this might not be the correct format since the queries are to individual word indices, rather than the IDs of lines within a page. Highly likely that I'm missing something obvious as well; Shakespeare fans, help appreciated!

[https://scriptspeare.co.uk/Tragedy/Macbeth/0/](https://scriptspeare.co.uk/Tragedy/Macbeth/0/)

 ![50](https://us1.discourse-cdn.com/elastic/original/3X/a/5/a5702207174fa3efc12eb704fd364e772b036b9d.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 21, 2019, 1:05pm UTC](https://discuss.elastic.co/t/site-or-app-search-indexing-issues/173306/2 "2019-03-21T13:05:18Z")

</div>

I believe that the engine is using an english analyzer by default.

```auto
GET _analyze
{
  "text": ["to be or not to be"],
  "analyzer": "english"
}

```

This is producing;

```auto
{
  "tokens" : []
}

```

While a `standard` analyzer will generate:

```auto
GET _analyze
{
  "text": ["to be or not to be"],
  "analyzer": "standard"
}

```

```auto
{
  "tokens" : [
    {
      "token" : "to",
      "start_offset" : 0,
      "end_offset" : 2,
      "type" : "<ALPHANUM>",
      "position" : 0
    },
    {
      "token" : "be",
      "start_offset" : 3,
      "end_offset" : 5,
      "type" : "<ALPHANUM>",
      "position" : 1
    },
    {
      "token" : "or",
      "start_offset" : 6,
      "end_offset" : 8,
      "type" : "<ALPHANUM>",
      "position" : 2
    },
    {
      "token" : "not",
      "start_offset" : 9,
      "end_offset" : 12,
      "type" : "<ALPHANUM>",
      "position" : 3
    },
    {
      "token" : "to",
      "start_offset" : 13,
      "end_offset" : 15,
      "type" : "<ALPHANUM>",
      "position" : 4
    },
    {
      "token" : "be",
      "start_offset" : 16,
      "end_offset" : 18,
      "type" : "<ALPHANUM>",
      "position" : 5
    }
  ]
}

```

I'm not yet super aware about all the settings you can have in site search. I'm moving your question to #site-search to get more insights.

---

<div class="post-metadata">

**Author:** ![3morrow](https://avatars.discourse-cdn.com/v4/letter/3/43a26b/32.png) [@3morrow](https://discuss.elastic.co/u/3morrow)\
**Post date:** [March 21, 2019, 2:26pm UTC](https://discuss.elastic.co/t/site-or-app-search-indexing-issues/173306/3 "2019-03-21T14:26:11Z")

</div>

Much appreciated; [More is thy due than more than all can pay.](https://scriptspeare.co.uk/Tragedy/Macbeth/#303=line)

---

<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:** [April 18, 2019, 2:26pm UTC](https://discuss.elastic.co/t/site-or-app-search-indexing-issues/173306/4 "2019-04-18T14:26:11Z")

</div>

Closed on April 18, 2019, 2:26pm UTC

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