TextSearchResultDTO

DTO that contains the result of a text search (lucene).

Fields

Type
Name
Description
Optional
Default Value
Long  
searchTime
The search execution time.
false
 
metaData
The meta information about the search.
false
 
resultEntries
The list of resulting TextSearchResultEntryDTOs.
false
 
resultPerEntity
A map containing the result count per entity.
false
 

Example

{
	"searchTime": 1289,
	"metaData": {
		"maxRecordSize": 100,
		"maxRecordSizeForLevel": 10,
		"pageOffset": 0,
		"pageSize": 10,
		"searchId": "823hcn987m2j98fhoijnl38",
		"query": "Miller",
		"totalRecordSize": 4
	},
	"resultEntries": [
		{
			"pk": "9ashpdn98293cmp901CoPe",
			"entity": "ContactPerson",
			"description": "Miller, John, FooBar Inc., Somewhere",
			"header": "Miller, John, FooBar Inc., Somewhere",
			"active": true
		},
		{
			"pk": "723nkl12jb7vhasgv8CoPe",
			"entity": "ContactPerson",
			"description": "Miller, Anita, Another Company, Another Place",
			"header": "Miller, Anita, Another Company, Another Place",
			"active": true
		},
		{
			"pk": "182zhnjkbs82390hjfEm",
			"entity": "Employee",
			"description": "Miller, Paul, MyCompany, Far Away",
			"header": "Miller, Paul, MyCompany, Far Away",
			"active": true
		},
		{
			"pk": "81laskdmztfq67d6adCu",
			"entity": "Customer",
			"description": "Miller Inc., Somewhere Else",
			"header": "Miller Inc., Somewhere Else",
			"active": true
		}
	],
	"resultPerEntity": {
		"Employee": 1,
		"Customer": 1,
		"ContactPerson": 2
	}
}