# Search query term ignored (C# / .NET)

**URL:** <https://discuss.elastic.co/t/search-query-term-ignored-c-net/51436>\
**Category:** Elasticsearch\
**Created:** [May 31, 2016, 2:00pm UTC](https://discuss.elastic.co/t/search-query-term-ignored-c-net/51436 "2016-05-31T14:00:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasD3](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@ThomasD3](https://discuss.elastic.co/u/ThomasD3)\
**Post date:** [May 31, 2016, 2:00pm UTC](https://discuss.elastic.co/t/search-query-term-ignored-c-net/51436/1 "2016-05-31T14:00:21Z")

</div>

Here is a simplified version of my query:

> ```
> var Match = EC.Search<IndexedData>(_ => _
> .Query(Q => Q.Term(P => P.Category, Category))
> .Query(Q => Q.Term(P => P.Type, Type))
> .Query(Q => Q.Term(P => P.Title, Input) || Q.Term(P => P.Tags, Input))
> 
> ```

And here are the relevant fields of the class _IndexedData_:

> ```
> [String(Index = FieldIndexOption.Analyzed)]
> public string Tags { get; set; }
> 
> [String(Index = FieldIndexOption.Analyzed, Analyzer = "English")]
> public string Title { get; set; }
> 
> public Common.AlbumCategory Category { get; set; }
> 
> public Common.MediaType Type { get; set; }
> 
> ```

_Category_ and _Type_ are enums.

I have found that whatever I put in my query for _Category_ or _Type_, the results from the search are identical.

What am I missing?

---

<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:** [July 5, 2017, 10:47pm UTC](https://discuss.elastic.co/t/search-query-term-ignored-c-net/51436/2 "2017-07-05T22:47:36Z")

</div>

Closed on July 5, 2017, 10:47pm UTC


