# Self hosted app search .Net Core UI

**URL:** <https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [January 27, 2020, 10:34am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633 "2020-01-27T10:34:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [January 27, 2020, 10:34am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/1 "2020-01-27T10:34:32Z")

</div>

Good Day,  
We are planning to use app search self managed service to integrate into .Net Core MVC UI.  
I am able to set up app search self managed instance on Linux machine.  
Is there any sample Appsearch client UI in .net. There is no client available on [Getting Started with App Search | Swiftype Documentation](https://swiftype.com/documentation/app-search/getting-started) clients..

Any guidence is much appreciated.

Thanks and Kind Regards  
Srini

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [January 27, 2020, 11:51am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/2 "2020-01-27T11:51:04Z")

</div>

There is no .NET client for App Search.

The API is documented here: [https://swiftype.com/documentation/app-search/api/overview](https://swiftype.com/documentation/app-search/api/overview).

We also have an OpenAPI spec here, if that helps: [https://github.com/elastic/app-search-php/blob/master/resources/api/api-spec.yml](https://github.com/elastic/app-search-php/blob/master/resources/api/api-spec.yml).

Jason

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [January 28, 2020, 6:53am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/3 "2020-01-28T06:53:44Z")

</div>

Thank @JasonStoltz for your reply. I will try it and let you know how it works.

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [February 4, 2020, 2:12pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/4 "2020-02-04T14:12:24Z")

</div>

Hi @JasonStoltz  
I am querying the self hosted appsearch engine.  
Bbelow is the query which is works perfectly

{"query":""9781848105805" AND "Wonderful Weaver" AND "Miles Kelly" AND Paperback "}

Now, I need to choose the date range on specific field which i am having issue,

I tried below query but no luck.

"9781848105805" AND "Wonderful Weaver" AND "Miles Kelly" AND Paperback AND publicationdate:[20020101 TO 20030101]

> Basically i need to know how to use the single query on date ranges for specific field.

**[XXXX](http://xxxx.com/api/as/v1/engines/my-search-engine/search)**

Thank you very much

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 5, 2020, 2:53pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/5 "2020-02-05T14:53:46Z")

</div>

You can apply a Range Filter for that: [https://swiftype.com/documentation/app-search/api/search/filters#range-filters](https://swiftype.com/documentation/app-search/api/search/filters#range-filters)

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [February 6, 2020, 8:08am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/6 "2020-02-06T08:08:30Z")

</div>

Dear @JasonStoltz,

thank you for assisting so far..

Your suggested link looks promising in my requirement, i tried and i am getting below error response.

Please can you suggest:

Request Body

{  
"query": "Wonderful",  
"filters": {  
"publicationdate": {  
"from": "1950-01-01T12:00:00+00:00",  
"to": "2025-01-01T12:00:00+00:00"  
}  
}  
}

Response body:

{  
"errors": [  
"Filters contains invalid value for field: publicationdate; must be a string, or an array of strings"  
]  
}

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 6, 2020, 11:53am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/7 "2020-02-06T11:53:36Z")

</div>

Go to the Schema page in App Search and make sure the `publicationdate` field is set to `Date`.

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [February 6, 2020, 11:57am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/8 "2020-02-06T11:57:31Z")

</div>

Thank you.. i have to clean the data as well.

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [March 4, 2020, 11:39am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/9 "2020-03-04T11:39:15Z")

</div>

hi @JasonStoltz  
Thank you for your responses.  
It was working fine.. now i am getting this error.. i have 100K records now

{"errors":["Internal server error. Please check your application server logs for more details and contact Elastic support if the problem persists"]}

index [.app-search-actastic-engines\_v2] blocked by: [FORBIDDEN/12/index read-only / allow delete  
any idea.?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [March 4, 2020, 12:08pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/10 "2020-03-04T12:08:03Z")

</div>

Hmmm, that doesn't look good. What API requests is that happening on? Also, what version of App Search are you using?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [March 4, 2020, 12:09pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/11 "2020-03-04T12:09:51Z")

</div>

A quick google search lead me to this. Is it possible you're low on storage space?

> The forbidden 12 read only error Elasticsearch and the read delete only API error Elasticsearchx000D typically happens when Elasticsearch reads the disk as being low on storage space and will therefore put itself into “read-only” mode.

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [March 4, 2020, 12:20pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/12 "2020-03-04T12:20:44Z")

</div>

Api i am using is

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [March 4, 2020, 3:59pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/13 "2020-03-04T15:59:45Z")

</div>

@JasonStoltz, thank you very much..

---

<div class="post-metadata">

**Author:** ![Srini12](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Srini12](https://discuss.elastic.co/u/Srini12)\
**Post date:** [March 5, 2020, 7:14am UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/14 "2020-03-05T07:14:39Z")

</div>

Hi @JasonStoltz  
Thanks for help so far.  
I got one more issue..

i need to use filters in multiple fileds with combinations of dates, and strings and numbers

i am getting below error  
**{"errors":["Filters contains an invalid set of keys for object inside of field: filters root; can only have clauses or a single field name","Filters contains invalid key: authFilter"]}**

my request json is :

{  
"query": ""Deon Meyer"",  
"page": {  
"size": 50,  
"current": 1  
},  
"filters": {  
"authFilter": {  
"Field": "contributors",  
"Value": "Deon Meyer"  
},  
"publicationdate": {  
"from": "2000-03-05T00:00:00-05:00",  
"to": "2021-03-05T00:00:00-05:00"  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [March 5, 2020, 12:00pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/15 "2020-03-05T12:00:06Z")

</div>

The guide for combining filters is here: [https://swiftype.com/documentation/app-search/api/search/filters#combining-filters](https://swiftype.com/documentation/app-search/api/search/filters#combining-filters)

A similar question was asked recently as well: [Error: [400] Filters contains an invalid set of keys for object inside of field: filters root; can only have clauses or a single field name](https://discuss.elastic.co/t/error-400-filters-contains-an-invalid-set-of-keys-for-object-inside-of-field-filters-root-can-only-have-clauses-or-a-single-field-name/221124/2)

---

<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 2, 2020, 12:00pm UTC](https://discuss.elastic.co/t/self-hosted-app-search-net-core-ui/216633/16 "2020-04-02T12:00:20Z")

</div>

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