Chunks
A set of Endpoints to discover information about available Chunks.
|
Important
|
Indexing of Chunks
Please note that only Chunks with a minimal token length of 15 are indexed. The reason behind that is towfold: 1.) normally one is interested in semantic rich Chunks and 2.) the indexing process and the Solr-Index don’t have to work on millions of simple short Chunks. Although there are (good) reasons for this decision, this might change in the future. |
/api/chunks/status
Returns a list of status objects, describing the status of Chunking and indexing of chunks.
| Parameter | Description |
|---|---|
|
A simple 'contains'-filter on the machinename. |
$ curl 'http://localhost:8080/api/chunks/status?filter=20121227_intermediaries' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 99
Content-Type: application/json
Content-Length: 499
{
"responseHeader" : {
"httpStatus" : null,
"msg" : "",
"query" : "http://localhost:8080/api/chunks/status?filter=20121227_intermediaries",
"state" : "OK"
},
"content" : [ {
"snapshot" : "20121227_intermediaries",
"chunker" : "default",
"started" : "2026-09-11T13:12:15.000Z",
"finished" : "2026-09-11T15:22:04.000Z",
"indexed" : true
} ],
"page" : {
"size" : 1,
"number" : 0,
"totalElements" : 1,
"totalPages" : 1
},
"links" : { }
}
/api/chunks/search
Returns a list of Chunks, queried on a full-text-index.
| Parameter | Description |
|---|---|
|
The name of the snapshot. |
|
Optional. The name of a selection. |
|
The query on the text of the chunk |
|
Optional. A specific domain. |
|
Optional. A reference/path. |
|
Optional. The max. number of segments in the reference/path (e.g. www.myurl.de/home/new has referenceSegments of 2) |
|
Optional. A specific language (e.g. 'en' or 'de'. |
|
Optional. Defines the minimum number of tokens in a returned chunk. Defaults to 15 |
|
Defines how many results should be returned. Defaults to 100 |
|
If 'true' returns the embedding of the chunk. Defaults to true |
|
The machineName of the EmbeddingDefinition. Defaults to 'default' |
$ curl 'http://localhost:8080/api/chunks/search?snapshot=20121227_intermediaries&query=forschung&limit=2' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 99
Content-Type: application/json
Content-Length: 1369
{
"responseHeader" : {
"httpStatus" : null,
"msg" : "",
"query" : "http://localhost:8080/api/chunks/search?snapshot=20121227_intermediaries&query=forschung&limit=2",
"state" : "OK"
},
"content" : [ {
"chunk" : "MDgt. Dr. Josef Glombik, Abteilungsleiter, Abteilung Wissenschaft und Forschung, Ministerium für Wissenschaft, Forschung und Kultur",
"chunkId" : 242996,
"chunkTokenCount" : 15,
"chunker" : "default",
"domain" : "www.che.de",
"embedding" : [ ],
"language" : "de",
"reference" : "/cms/?getobject=260&straction=show&pk_projekt=138&getlang=de",
"referenceSegments" : 2,
"snapshot" : "20121227_intermediaries"
}, {
"chunk" : "V. Forschung und wissenschaftlicher Nachwuchs \n\tWissenschaftlicher Nachwuchs\n\tForschung an den Fachhochschulen\n\tSchutzrechte\n\tUmgang mit wissenschaftlichem Fehlverhalten",
"chunkId" : 1001579,
"chunkTokenCount" : 16,
"chunker" : "default",
"domain" : "www.hrk.de",
"embedding" : [ ],
"language" : "de",
"reference" : "/positionen/gesamtliste-beschluesse/position/convention/auf-dem-weg-zu-mehr-selbstverantwortung-und-flexibilitaet/",
"referenceSegments" : 6,
"snapshot" : "20121227_intermediaries"
} ],
"page" : {
"size" : 2,
"number" : 0,
"totalElements" : 2,
"totalPages" : 1
},
"links" : { }
}
/api/chunks/queryAggrByDomain
Returns a List of Counts of each domain with the number of hits of the provided IndexQuery.
| Parameter | Description |
|---|---|
|
The name of the snapshot. |
|
Optional. The name of a selection. |
|
The query on the text of the chunk |
|
Optional. A specific language (e.g. 'en' or 'de'.) |
|
Optional. Defines the minimum number of tokens in a returned chunk. Defaults to 15 |
$ curl 'http://localhost:8080/api/chunks/queryAggrByDomain?snapshot=20121227_intermediaries&query=forschung' -i -X GET
HTTP/1.1 200 OK
X-Rate-Limit-Remaining: 99
Content-Type: application/json
Content-Length: 2753
{
"responseHeader" : {
"httpStatus" : null,
"msg" : "",
"query" : "http://localhost:8080/api/chunks/queryAggrByDomain?snapshot=20121227_intermediaries&query=forschung",
"state" : "OK"
},
"content" : [ {
"snapshot" : "20121227_intermediaries",
"domain" : "www.dfg.de",
"count" : 1977
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.hrk.de",
"count" : 1112
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.che.de",
"count" : 438
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.acquin.org",
"count" : 256
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "eleru.leru.org",
"count" : 24
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.fibaa.org",
"count" : 22
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.ciep.fr",
"count" : 12
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.oaq.ch",
"count" : 7
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.nvao.net",
"count" : 5
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.aqas.de",
"count" : 4
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.euroscience.org",
"count" : 4
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "new.eua.be",
"count" : 3
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.aca-secretariat.be",
"count" : 3
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.eua.be",
"count" : 3
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "eacea.ec.europa.eu",
"count" : 2
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "erc.europa.eu",
"count" : 2
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.nuffic.nl",
"count" : 2
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.sciencebusiness.net",
"count" : 2
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.acadeuro.org",
"count" : 1
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.allea.org",
"count" : 1
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.britishcouncil.org",
"count" : 1
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.eaie.org",
"count" : 1
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.esf.org",
"count" : 1
}, {
"snapshot" : "20121227_intermediaries",
"domain" : "www.worldbank.org",
"count" : 1
} ],
"page" : {
"size" : 24,
"number" : 0,
"totalElements" : 24,
"totalPages" : 1
},
"links" : { }
}