Examples
Give the “simple-exclude” pipeline a stage that excludes certain document typesReplace
EXAMPLE_COMPANY with the name provided by your Lucidworks representative.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Action required: Upgrade to Fusion 5.17.2 to apply urgent security patches. Lucidworks Search clients will be upgraded automatically.
Index pipeline stage configuration specifications
curl -u USERNAME:PASSWORD -X POST -H "Content-type: application/json" 'http://EXAMPLE_COMPANY.lucidworks.cloud/api/index-pipelines' -d '
{
"id" : "simple-exclude",
"stages" : [ {
"type" : "exclude-doc",
"matchRules" : [ {
"field" : "document_type",
"pattern" : "(xls|xlsx|xlst|doc|docx)"
}]
}]
}'
EXAMPLE_COMPANY with the name provided by your Lucidworks representative.curl -u USERNAME:PASSWORD 'http://EXAMPLE_COMPANY.lucidworks.cloud/api/index-pipelines/simple-exclude/collections/logs/index?simulate=true&echo=true' -H 'Content-type: application/json' -d '
{
"document_type": "txt"
}'
[ {
"id" : "93da43ff-4218-4f24-a690-23b530926104",
"fields" : [ {
"name" : "document_type",
"value" : "txt",
"metadata" : { },
"annotations" : [ ]
} ]
} ]
curl -u USERNAME:PASSWORD 'http://EXAMPLE_COMPANY.lucidworks.cloud/api/index-pipelines/simple-exclude/collections/logs/index?simulate=true&echo=true' -H 'Content-type: application/json' -d '
{
"document_type": "xls"
}'
[ ]
\t for the tab character. When entering configuration values in the API, use escaped characters, such as \\t for the tab character.Was this page helpful?