# Search based on FullText Meta Information

**URL:** <https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069>\
**Category:** Elasticsearch\
**Created:** [October 16, 2017, 9:49am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069 "2017-10-16T09:49:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PascalTurbo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pascalturbo/32/91244_2.png) [@PascalTurbo](https://discuss.elastic.co/u/PascalTurbo)\
**Post date:** [October 16, 2017, 9:49am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069/1 "2017-10-16T09:49:32Z")

</div>

Hi There,

we've written a plugin that adds some linguistic information to the fulltext index like Stem and POS.  
Now we wanna search based on this information.

Example:

```
Indexed Text: 
  a) "The cars are driving around the roundabout"
  b) "A car crashed into the wall"

```

When I now search for the term "car" example b) should be higher ranked than example a).

Also for special cases I wan't to search for constructs like "A noun followed by a verb".

Are such searches possible? Maybe by using scripts?

Bests  
Pascal

---

<div class="post-metadata">

**Author:** ![PascalTurbo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pascalturbo/32/91244_2.png) [@PascalTurbo](https://discuss.elastic.co/u/PascalTurbo)\
**Post date:** [October 20, 2017, 11:30am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069/2 "2017-10-20T11:30:29Z")

</div>

No idea?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 23, 2017, 8:39am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069/3 "2017-10-23T08:39:16Z")

</div>

if you wrote your own plugins, that stores these information somewhere, you also need to write your own query, that makes sense of that stored information.

---

<div class="post-metadata">

**Author:** ![PascalTurbo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pascalturbo/32/91244_2.png) [@PascalTurbo](https://discuss.elastic.co/u/PascalTurbo)\
**Post date:** [October 23, 2017, 9:02am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069/4 "2017-10-23T09:02:51Z")

</div>

We are storing these information directly in the text index. But there seems to be no way to access them using a query.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 23, 2017, 9:16am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069/5 "2017-10-23T09:16:48Z")

</div>

indeed. It would be super inefficient to extract this on query time from the JSON. You would need to enrich the lucene index and have custom queries for this.

Dont be fooled by the seemingly simple approach. There are companies who have evolved their business model around exactly that, for more than a decade 🙂

---

<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:** [November 20, 2017, 9:29am UTC](https://discuss.elastic.co/t/search-based-on-fulltext-meta-information/104069/6 "2017-11-20T09:29:49Z")

</div>

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