No hit on indexed field using unified search

Vote:
 

Hi,

I have a field CaseNumber that is indexed but I can't get any hits on the field when I search using unified search. The number is present 4 times in the indexed content, as CaseNumber 

"CaseNumber$$string": "2015/12345-6"

and CaseNumber within SearchMetadata 

"CaseNumber": {
            "StringValue$$string": "2015/12345-6".

I have tested this using this code:

var result = SearchClient.Instance.UnifiedSearch().For(q).GetResult();


Anyone got an idea why?

/Frode

#186089
Edited, Dec 12, 2017 10:44
Vote:
 

Which values have you tested for "q". Do you get an exact match searching with "-chars around the phrase?

"2015/12345-6"
#186379
Dec 18, 2017 23:56
Vote:
 

No, that gives no hits.

But I added the casenumber to SearchSummary and now I get hits on the number, but the excerpt is blank in these hits. anyone know why that happen?

#186415
Dec 19, 2017 14:15
Vote:
 

As a test, can you try wrapping the search text in quotes?

Something like:

SearchClient.Instance.UnifiedSearch().For(\"2015/12345-6\"").GetResult();

#187194
Jan 15, 2018 21:06
Vote:
 

The solution for this was to add the casenumber to the property SearchSummary. I can search on the whole number but not parts of it. 

Ref: https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/Unified-search/

/Frode

#187262
Edited, Jan 17, 2018 9:19
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.