Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Search Query is sent when searching in Datafari and pressing the “Enter” key or clicking on the magnifying glass:

...

GET https://[DATAFARI_BASE_URL]/Datafari/rest/v2.0/search/select?parameters

Example https://datafariui.datafari.com/Datafari/rest/v2.0/search/select?parameters

Query parameters:

Parameter

Value

Description

Data Type

q

User input (default: *:*)

The user input from search bar.

When the user does not enter any term in the search bar, use the default value “*:*” to retrieve all documents indexed in Datafari.

String

fl

List from ui-config.json

Used to display items on the search page about the document, like title, preview content, url, etc...

The list of values from "queryParams": { "fields": [ ] } in the configuration file: ui-config.json. The default values in this file are:

Code Block
languagejson
  "queryParams": {
    "fields": [
      "title",
      "url",
      "id",
      "extension",
      "preview_content",
      "last_modified",
      "crawl_date",
      "author",
      "original_file_size",
      "emptied",
      "repo_source"
    ]
  },

String

sort

score desc

Fixed value to sort the result list of documents.

String

q.op

AND

Fixed value that configure the type of search in Solr.

String

rows

10

Number of documents retrieved by the query. Fixed value.

number

start

Computed value

Is used to retrieve next page of result list. The search query must be sent with a value computed as follow: page_index * rows.

image-20240611-131205.png

Starts with 0. To have the first result page start=0, then second page is start=1*10, etc…

number

aggregator

From ui-config.json

The value of this parameter must be retrieved from this object in the ui-config.json file:

image-20240611-131738.png

“aggregator” value from searchBar.suggesters[x].type=”BASIC”.aggregator.

boolean

facet

true

Always true for filtering results with facet selections.

boolean

facet.field

{!ex=field_name}field_name

made from ui-config.json

This parameter is used for result arrangement into categories (Solr functionality).

It is made with all objects of type FieldFacet and the object of type HierarchicalFacet in ui-config.json:

image-20240612-081611.png

All objects left[x].type="FieldFacet" and left[x].type="HierarchicalFacet" are used to create parameters facet.field={!ex=field_name}field_name. field_name = left[x].type="FieldFacet".field.

With the current ui-config.json content the parameters to generate are:

Code Block
&facet.field={!ex=author}author
&facet.field={!ex=repo_source}repo_source
&facet.field={!ex=extension}extension
&facet.field={!ex=language}language
&facet.field={!ex=urlHierarchy}urlHierarchy

String multiple

facet.query

{!key=id_index}query

made from ui-config.json

This parameter is used for result arrangement into categories (Solr functionality).

It is made with one object of type QueryFacet in ui-config.json:

image-20240612-095806.png

The object left[x].id="date__lastmodified_facet"is used to create multiple parameters: facet.query={!key=id_index}query. To do this, browse the "queries" table of the object.

  • id: date__lastmodified_facet

  • index: an index for making the “key” unique. Start with 0.

  • query: is a query item in "queries" table.

String multiple

...

A JSON response containing the list of documents found. All needed to display the result is in this response.

...

Here is are the 5 main objects:

...

spellcheck: no use.

...

Expand
title"facet_fields": { Example...
Code Block
languagejson
    "extension": [ For the Facet with the title "extension". In this example, there are 2 "docx" and 2 "xlsx" documents.
        "docx", 2,
        "xlsx", 2
    ],
    "language": [ For the Facet with title "Language". There are only english documents and they are 4.
        "en", 4
    ],
    "repo_source": [ For the Facet with the title "Source". There are documents only in "Simple O365" source and they are 4.
        "Simple O365", 4
    ]

}

Examples

Empty search

Here is the default request sent to the Datafari API for an empty input in the search bar:

For these examples, we use https://datafariuidemo.datafari.com/Datafari/rest/v2.0/search/select ?q=*:* &fl=title,url,id,extension,preview_content,last_modified,crawl_date,author,original_file_size,emptied,repo_source &sort=score desc &q.op=AND &rows=10 &start=0 &aggregator= &facet=true &facet.field={!ex=author}author &facet.field={!ex=repo_source}repo_source &facet.field={!ex=extension}extension &facet.field={!ex=language}language &facet.field={!ex=urlHierarchy}urlHierarchy &facet.query={!key=date__lastmodified_facet_0}last_modified:[NOW/DAY TO NOW] &facet.query={!key=date__lastmodified_facet_1}last_modified:[NOW/DAY-7DAY TO NOW/DAY] &facet.query={!key=date__lastmodified_facet_2}last_modified:[NOW/DAY-30DAY TO NOW/DAY-8DAY] &facet.query={!key=date__lastmodified_facet_3}last_modified:([1970-09-01T00:01:00Z TO NOW/DAY-31DAY] || [* TO to illustrate another configuration and see how parameters can vary. See below its ui-config.json:

Expand
titleExpand to see ui-config.json...
Code Block
languagejson
{
  "left": [
    {
      "type": "QueryFacet",
      "title": "Modification Date",
      "queries": [
        "last_modified:[NOW/DAY TO NOW]",
        "last_modified:[NOW/DAY-7DAY TO NOW/DAY]",
        "last_modified:[NOW/DAY-30DAY TO NOW/DAY-8DAY]",
        "last_modified:([1970-09-01T00:01:00Z TO NOW/DAY-31DAY] || [* TO 1970-08-31T23:59:59Z])

...

",
        "last_modified:[1970-09-01T00:00:00Z TO 1970-09-01T00:00:00Z]

...

Response:

...

In the detailed response below, you find the 10 documents in the response.docs objects with response.numFound=14. This last value is used to display the number of pages.

The “ids” in highlighting objects are empty, so the preview_content is displayed above.

Code Block
languagejson
{
    "spellcheck": {
        "collations": [],
        "suggestions": [],
        "correctlySpelled": true
    },
    "response": {
        "docs": [
            {
                "preview_content": [
                    "BUDGET\n\t      EUROPEAN BACKPACKING TRIP, SUMMER 2017\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\tBudget remaining\t\t\t\t\t\t\t\t\tBudget spent\n\t\t\t\t\tSpent:\t\t\t\t\t\t\t\t\t \tGear\tApparel\tMiscellaneous\tTravel/lodging\n\t\t\t\t\tGear\t\t$   913.00\t\t\t\t\t\t\tOctober\t$   233.00\t$   230.00\t$   240.00\t$   350.00\n\t\t\t\t\tApparel\t\t$   853.00\t\t\t\t\t\t\tNovember\t$   305.00\t$   500.00\t$   120.00\t$   450.00\n\t\t\t\t\tMiscellaneous\t\t$   650.00\t\tSUMMARY\t\t\t\t\tDecember\t$   75.00\t$   123.00\t$   260.00\t$   90.00\n\t\t\t\t\tTravel/lodging\t\t$   1,110.00\t\tTOTAL BUDGET\t\t\t\t\tJanuary\t$   300.00\t\t$   30.00\t$   220.00\n\t\t\t\t\tBUDGET REMAINING\t\t$   3,974.00\t\t$7,500\t\t\t\t\tTOTAL SPEND:\t$   913.00\t$   853.00\t$   650.00\t$   1,110.00\n\n\t\t\t\t\t\t\t\t\tBUDGET SPENT\n\t\t\t\t\t\t\t\t\t$3,500\n\n\n\t\t\t\t\t\t\t\t\tBUDGET REMAINING\n\t\t\t\t\t\t\t\t\t$4,173\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nBUDGET SPENT TO DATE\n\nGear\tOctober\tNovember\tDecember\tJanuary\t233\t305\t75\t300\tApparel\tOctober\tNovember\tDecember\tJanuary\t230\t500\t123\tMiscellaneous\tOctober\tNovember\tDecember\tJanuary\t240\t120\t260\t30\tTravel/lodging\tOctober\tNovember\tDecember\tJanua"
                ],
                "extension": "xlsx",
                "author": [
                    "Microsoft Office User"
                ],
                "original_file_size": 41984,
                "emptied": false,
                "crawl_date": "2024-06-10T13:13:34.747Z",
                "id": "id_example_1",
                "repo_source": "Simple O365",
                "title": [
                    "European Backpacking Trip.xlsx"
                ],
                "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7BE1CBF229-6BE9-4D54-B124-10BD8F3AB43B%7D%26file%3DEuropean+Backpacking+Trip.xlsx%26action%3Ddefault%26mobileredirect%3Dtrue&id=1bc853fc-297e-4f27-8e03-1c47519b01ac",
                "last_modified": [
                    "2023-06-27T10:23:32Z"
                ],
                "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7BE1CBF229-6BE9-4D54-B124-10BD8F3AB43B%7D&file=European%20Backpacking%20Trip.xlsx&action=default&mobileredirect=true"
            },
            {
                "preview_content": [
                    "Annual Report\n\n\nSALES\nOur Sales have breached previous years’ expectations and have allowed us to expand into two more regions this year: The Northwest and California.  Contoso today announced financial results for its most recent fiscal quarter. The Company posted quarterly revenue of $28.27 million and quarterly net profit of $6. 2 million, or $7.25 per diluted share. These results compare to revenue of $21.65 million and net quarterly profit of $4.45 million, or $4.74 per diluted share, in the year-ago quarter. Gross margin was 42.3 percent compared to 38.9 percent in the year-ago quarter. International sales accounted for 27 percent of the quarter’s revenue. \n\nWe are thrilled with the very strong finish of an outstanding second quarter, growing annual revenue to $108 million and growing earnings to $26 million. Customer response to our entertainment and video products has been fantastic, we have strong momentum going into the next quarter, and we remain really enthusiastic about ou"
                ],
                "extension": "docx",
                "author": [
                    "Denis Dehenne"
                ],
                "original_file_size": 74023,
                "emptied": false,
                "crawl_date": "2024-06-10T13:13:34.805Z",
                "id": "id_example_2",
                "repo_source": "Simple O365",
                "title": [
                    "Contoso Annual Report [Draft].docx"
                ],
                "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7BAED29CFE-3078-4228-9C2D-AC93EA673F76%7D%26file%3DContoso+Annual+Report+%5BDraft%5D.docx%26action%3Ddefault%26mobileredirect%3Dtrue&id=1bc853fc-297e-4f27-8e03-1c47519b01ac",
                "last_modified": [
                    "2023-06-27T10:23:20Z"
                ],
                "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7BAED29CFE-3078-4228-9C2D-AC93EA673F76%7D&file=Contoso%20Annual%20Report%20[Draft].docx&action=default&mobileredirect=true"
            },
            {
                "preview_content": [
                    "Shipping Budget\n\tQT300 Accessories Specs\t\t\t\t\t\tCosts Chart\n\t\t\tContinue?\tWhich Regions?\t\t\tPackages\tCount of Package 4\n\t\t\t\t\t\t\tPackage 1\t19\n\t\t\t\t\t\t\tPackage 2\t40\n\t\t\t\t\t\t\tPackage 3\t10\n\t\t\t\t\t\t\tPackage 4\t16\n\t\t\t\t\t\t\tPackage 5\t14\n\t\t\t\t\t\t\tGrand Total\t99\n\n\n\n\nTotal\tPackage 1\tPackage 2\tPackage 3\tPackage 4\tPackage 5\t19\t40\t10\t16\t14\t\n\n\n\n\nData\n\tResults Data\n\tTest Group\tGender\tTest Option\t1\t2\t3\n\t18-25\tMale\tPackage 4\tColor\tCurious\tExcited\n\t36-45\tFemale\tPackage 2\tShape\tExcited\tExcited\n\t36-45\tFemale\tPackage 2\tShape\tInterested\tExcited\n\tOver 65\tMale\tPackage 2\tWords\tExcited\tCurious\n\t26-35\tFemale\tPackage 2\tShape\tNeutral\tExcited\n\t36-45\tFemale\tPackage 1\tShape\tConfused\tNeutral\n\t26-35\tFemale\tPackage 1\tShape\tFrustrated\tConfused\n\tOver 65\tFemale\tPackage 4\tOther\tNeutral\tFrustrated\n\t26-35\tMale\tPackage 4\tShape\tConfused\tConfused\n\t18-25\tFemale\tPackage 2\tShape\tNeutral\tInterested\n\t36-45\tMale\tPackage 2\tOther\tNeutral\tConfused\n\t46-55\tMale\tPackage 3\tWords\tNeutral\tFrustrated\n\t26-35\tMale\tPackage 1\tSymbols\tNeutral\tNeutral\n\t26-35\tMale\tPa"
                ],
                "extension": "xlsx",
                "author": [
                    "Denis Dehenne"
                ],
                "original_file_size": 34713,
                "emptied": false,
                "crawl_date": "2024-06-10T13:13:35.368Z",
                "id": "id_example_3",
                "repo_source": "Simple O365",
                "title": [
                    "QT300 Accessories Specs.xlsx"
                ],
                "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7B15DCC143-2211-4D6E-B1EA-65651549C819%7D%26file%3DQT300+Accessories+Specs.xlsx%26action%3Ddefault%26mobileredirect%3Dtrue&id=1bc853fc-297e-4f27-8e03-1c47519b01ac",
                "last_modified": [
                    "2023-06-27T10:23:36Z"
                ],
                "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7B15DCC143-2211-4D6E-B1EA-65651549C819%7D&file=QT300%20Accessories%20Specs.xlsx&action=default&mobileredirect=true"
            },
            {
                "preview_content": [
                    "Contoso Annual Report\n\nAnne Wallace\nSales\nOur Sales have breached previous years’ expectations and have allowed us to expand into two more regions this year: The Northwest and California.  Contoso today announced financial results for its most recent fiscal quarter. The Company posted quarterly revenue of $28.27 million and quarterly net profit of $6. 2 million, or $7.25 per diluted share. These results compare to revenue of $21.65 million and net quarterly profit of $4.45 million, or $4.74 per diluted share, in the year-ago quarter. Gross margin was 42.3 percent compared to 38.9 percent in the year-ago quarter. International sales accounted for 27 percent of the quarter’s revenue. \n\n\nWe are thrilled with the very strong finish of an outstanding second quarter, growing annual revenue to $108 million and growing earnings to $26 million. Customer response to our entertainment and video products has been fantastic, we have strong momentum going into the next quarter, and we remain really "
                ],
                "extension": "docx",
                "author": [
                    "Denis Dehenne"
                ],
                "original_file_size": 31618,
                "emptied": false,
                "crawl_date": "2024-06-10T13:13:35.417Z",
                "id": "id_example_4",
                "repo_source": "Simple O365",
                "title": [
                    "Contoso Annual Report.docx"
                ],
                "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7BC33F452E-98D7-4FCC-8E94-A75E65CB219B%7D%26file%3DContoso+Annual+Report.docx%26action%3Ddefault%26mobileredirect%3Dtrue&id=1bc853fc-297e-4f27-8e03-1c47519b01ac",
                "last_modified": [
                    "2023-06-27T10:23:21Z"
                ],
                "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7BC33F452E-98D7-4FCC-8E94-A75E65CB219B%7D&file=Contoso%20Annual%20Report.docx&action=default&mobileredirect=true"
            },
            {...},
            {...},
            {...},
            {...},
            {...},
            {...}
        ],
        "numFound": 14,
        "start": 0,
        "maxScore": 1.0,
        "numFoundExact": true
    },
    "responseHeader": {...},
    "highlighting": {
        "id_example_1": {},
        "id_example_2": {},
        "id_example_3": {},
        "id_example_4": {},
        "id_example_5": {},
        "id_example_6": {},
        "id_example_7": {},
        "id_example_8": {},
        "id_example_9": {},
        "id_example_10": {}
    },
    "facet_counts": {
        "facet_intervals": {},
        "facet_queries": {
            "date__lastmodified_facet_3": 13,
            "date__lastmodified_facet_1": 1
        },
        "facet_fields": {
            "extension": [
                "docx",
                6,
                "pptx",
                3,
                "xlsx",
                3,
                "txt",
                2
            ],
            "author": [
                "denis dehenne",
                5,
                "katie swanson (insight global, inc)",
                2,
                "garth fort",
                1,
                "microsoft office user",
                1,
                "tyler rasmussen",
                1
            ],
            "type_category": [
                "bureautique",
                1
            ],
            "language": [
                "en",
                11,
                "fr",
                2,
                "de",
                1
            ],
            "repo_source": [
                "Simple O365",
                12,
                "enron",
                2
            ],
            "urlHierarchy": [
                "0/",
                14,
                "1/xzr8j.sharepoint.com",
                12,
                "2/xzr8j.sharepoint.com/sites",
                12,
                "3/xzr8j.sharepoint.com/sites/wcontosoteam",
                12,
                "4/xzr8j.sharepoint.com/sites/wcontosoteam/_layouts",
                12,
                "5/xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15",
                12,
                "1/localhost",
                2,
                "2/localhost/enron",
                2
            ]
        },
        "facet_heatmaps": {},
        "facet_ranges": {}
    }
}

Term(s) search

Except for the “q” parameter, an empty search is not different from a search with terms. So we don’t repeat the full query here, but we specify the “q” parameter: q=budget.

...

Response:

In the detailed response below, you find the 4 documents in the response.docs objects with response.numFound=4

In the detailed response below, the “ids” in highlighting objects are filled with the texts displayed in the result above.

Code Block
{     "spellcheck": {         "collations": [],         "suggestions": [],         "correctlySpelled": true     },     "response": {         "docs": [             {                 "preview_content": [                     "Contoso Company Goals Q1-Q4\n\nAnne Wallace\n\nProduct Innovation\nWe will continue to provide high quality products that give consumers a reason ..."                 ],                 "extension": "docx",                 "author": [                     "Denis Dehenne"                 ],                 "original_file_size": 528742,                 "emptied": false,                 "crawl_date": "2024-06-10T13:13:36.756Z",                 "id": "id_example_1",                 "repo_source": "Simple O365",                 "title": [                     "Contoso Company Goals Q1 - Q4.docx"                 ],                 "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7B22748EA1-9104-4104-A70F-DC90D8AA026D%7D%26file%3DContoso+Company+Goals+Q1+-+Q4.docx%26action%3Ddefault%26mobileredirect%3Dtrue&id=f8e9b996-67ba-4bf2-951c-fc4f89ad104a",                 "last_modified": [                     "2023-06-27T10:23:23Z"                 ],                 "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7B22748EA1-9104-4104-A70F-DC90D8AA026D%7D&file=Contoso%20Company%20Goals%20Q1%20-%20Q4.docx&action=default&mobileredirect=true"             },             {                 "preview_content": [                     "BUDGET\n\t      EUROPEAN BACKPACKING TRIP, SUMMER 2017\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\tBudget remaining\t\t\t\t\t\t\t\t\tBudget spent\n\t\t\t\t\tSpent:\t\t\t\t\t\t\t\t\t \tGear\tApparel\tMiscellaneous\tTravel/lodging\n\t\t\t\t\tGear\t\t$   913.00\t\t\t\t\t\t\tOctober\t$   233.00\t$   230.00\t$   240.00\t$   350.00\n\t\t\t\t\tApparel\t\t$   853.00\t\t\t\t\t\t\tNovember\t$   305.00\t$   500.00\t$   120.00\t$   450.00\n\t\t\t\t\tMiscellaneous\t\t$   650.00\t\tSUMMARY\t\t\t\t\tDecember\t$   75.00\t$   123.00\t$   260.00\t$   90.00\n\t\t\t\t\tTravel/lodging\t\t$   1,110.00\t\tTOTAL BUDGET\t\t\t\t\tJanuary\t$   300.00\t\t$   30.00\t$   220.00\n\t\t\t\t\tBUDGET REMAINING\t\t$   3,974.00\t\t$7,500\t\t\t\t\tTOTAL SPEND:\t$   913.00\t$   853.00\t$   650.00\t$   1,110.00\n\n\t\t\t\t\t\t\t\t\tBUDGET SPENT\n\t\t\t\t\t\t\t\t\t$3,500\n\n\n\t\t\t\t\t\t\t\t\tBUDGET REMAINING\n\t\t\t\t\t\t\t\t\t$4,173\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nBUDGET SPENT TO DATE\n\nGear\tOctober\tNovember\tDecember\tJanuary\t233\t305\t75\t300\tApparel\tOctober\tNovember\tDecember\tJanuary\t230\t500\t123\tMiscellaneous\tOctober\tNovember\tDecember\tJanuary\t240\t120\t260\t30\tTravel/lodging\tOctober\tNovember\tDecember\tJanua"                 ],                 "extension": "xlsx",                 "author": [                     "Microsoft Office User"                 ],                 "original_file_size": 41984,                 "emptied": false,                 "crawl_date": "2024-06-10T13:13:34.747Z",                 "id": "id_example_2",                 "repo_source": "Simple O365",                 "title": [                     "European Backpacking Trip.xlsx"                 ],                 "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7BE1CBF229-6BE9-4D54-B124-10BD8F3AB43B%7D%26file%3DEuropean+Backpacking+Trip.xlsx%26action%3Ddefault%26mobileredirect%3Dtrue&id=f8e9b996-67ba-4bf2-951c-fc4f89ad104a",                 "last_modified": [                     "2023-06-27T10:23:32Z"                 ],                 "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7BE1CBF229-6BE9-4D54-B124-10BD8F3AB43B%7D&file=European%20Backpacking%20Trip.xlsx&action=default&mobileredirect=true"             },             {                 "preview_content": [                     "Five Year Vision\n\nAnne Wallace\n\nLong-Term Project Costs Cataloged:  Done\nLifts and other Large Equipment\nStreamline Financial Reports Process\nCustomer Requests\n\nAnalyze Long Term Costs: NOT STARTED\nBecome Independent of Outside Researchers\nStreamline Financial Reports Process\nInternational Sales Goals?\n\nCheck Short Term Budgeting: In Progress\nBudgets: Over Budget by 12% Avg.\nCustomer Requests\n\nLitware Expense September \nBy Department\n\nR\t&\tD\t25093\t24680\t23044\t21170\t20856\t20644\t20592\tMarketing\t8735\t8768\t8471\t8966\t8205\t8286\t8161\tEngineering\t72140\t73681\t78721\t78980\t71024\t75964\t74524\tProduction\t105968\t107129\t110236\t109116\t100085\t104894\t103277\tBusiness Operations\t14461\t19432\t13132\t12886\t12973\t15345\t13622"                 ],                 "extension": "docx",                 "author": [                     "Denis Dehenne"                 ],                 "original_file_size": 31780,                 "emptied": false,                 "crawl_date": "2024-06-10T13:13:35.998Z",                 "id": "id_example_3",                 "repo_source": "Simple O365",                 "title": [                     "Contoso Five Year Vision.docx"                 ],                 "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7BE72C3976-D76E-4D0D-A584-FEF51786872F%7D%26file%3DContoso+Five+Year+Vision.docx%26action%3Ddefault%26mobileredirect%3Dtrue&id=f8e9b996-67ba-4bf2-951c-fc4f89ad104a",                 "last_modified": [                     "2023-06-27T10:23:24Z"                 ],                 "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7BE72C3976-D76E-4D0D-A584-FEF51786872F%7D&file=Contoso%20Five%20Year%20Vision.docx&action=default&mobileredirect=true"             },             {                 "preview_content": [                     "Shipping Budget\n\tQT300 Accessories Specs\t\t\t\t\t\tCosts Chart\n\t\t\tContinue?\tWhich Regions?\t\t\tPackages\tCount of Package 4\n\t\t\t\t\t\t\tPackage 1\t19\n\t\t\t\t\t\t\tPackage 2\t40\n\t\t\t\t\t\t\tPackage 3\t10\n\t\t\t\t\t\t\tPackage 4\t16\n\t\t\t\t\t\t\tPackage 5\t14\n\t\t\t\t\t\t\tGrand Total\t99\n\n\n\n\nTotal\tPackage 1\tPackage 2\tPackage 3\tPackage 4\tPackage 5\t19\t40\t10\t16\t14\t\n\n\n\n\nData\n\tResults Data\n\tTest Group\tGender\tTest Option\t1\t2\t3\n\t18-25\tMale\tPackage 4\tColor\tCurious\tExcited\n\t36-45\tFemale\tPackage 2\tShape\tExcited\tExcited\n\t36-45\tFemale\tPackage 2\tShape\tInterested\tExcited\n\tOver 65\tMale\tPackage 2\tWords\tExcited\tCurious\n\t26-35\tFemale\tPackage 2\tShape\tNeutral\tExcited\n\t36-45\tFemale\tPackage 1\tShape\tConfused\tNeutral\n\t26-35\tFemale\tPackage 1\tShape\tFrustrated\tConfused\n\tOver 65\tFemale\tPackage 4\tOther\tNeutral\tFrustrated\n\t26-35\tMale\tPackage 4\tShape\tConfused\tConfused\n\t18-25\tFemale\tPackage 2\tShape\tNeutral\tInterested\n\t36-45\tMale\tPackage 2\tOther\tNeutral\tConfused\n\t46-55\tMale\tPackage 3\tWords\tNeutral\tFrustrated\n\t26-35\tMale\tPackage 1\tSymbols\tNeutral\tNeutral\n\t26-35\tMale\tPa"                 ],                 "extension": "xlsx",                 "author": [                     "Denis Dehenne"                 ],                 "original_file_size": 34713,                 "emptied": false,                 "crawl_date": "2024-06-10T13:13:35.368Z",                 "id": "id_example_4",                 "repo_source": "Simple O365",                 "title": [                     "QT300 Accessories Specs.xlsx"                 ],                 "click_url": "https://192.168.254.128/Datafari/rest/v2.0/url?url=https%3A%2F%2Fxzr8j.sharepoint.com%2Fsites%2Fwcontosoteam%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%7B15DCC143-2211-4D6E-B1EA-65651549C819%7D%26file%3DQT300+Accessories+Specs.xlsx%26action%3Ddefault%26mobileredirect%3Dtrue&id=f8e9b996-67ba-4bf2-951c-fc4f89ad104a",                 "last_modified": [                     "2023-06-27T10:23:36Z"                 ],                 "url": "https://xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15/Doc.aspx?sourcedoc=%7B15DCC143-2211-4D6E-B1EA-65651549C819%7D&file=QT300%20Accessories%20Specs.xlsx&action=default&mobileredirect=true"             }         ],         "numFound": 4,         "start": 0,         "maxScore": 462.94855,         "numFoundExact": true     },     "responseHeader": {...},     "highlighting": {         "id_example_1": {             "exactContent": [                 "\n\n3 Check Short Term Budgeting: In Progress\nBudgets Q1-Q4: Over <span class=\"em\">Budget</span> by 12% Avg.\nCustomer Requests\n\nimage1.gif\n\n"             ],             "content_en": [                 "Reports Process\nInternational Sales Goals?\n\n3 Check Short Term <span class=\"em\">Budgeting</span>: In Progress\n<span class=\"em\">Budgets</span> Q1-Q4: Over <span class=\"em\">Budget</span> by 12% Avg.\nCustomer Requests\n\nimage1.gif\n\n"             ]         },         "id_example_2": {             "exactContent": [                 "<span class=\"em\">BUDGET</span>\n\t      EUROPEAN BACKPACKING TRIP, SUMMER 2017\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t<span class=\"em\">Budget</span> remaining\t\t\t\t\t\t\t\t\t<span class=\"em\">Budget</span> spent"             ],             "content_en": [                 "<span class=\"em\">BUDGET</span>\n\t      EUROPEAN BACKPACKING TRIP, SUMMER 2017\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t<span class=\"em\">Budget</span> remaining\t\t\t\t\t\t\t\t\t<span class=\"em\">Budget</span> spent"             ]         },         "id_example_3": {             "exactContent": [                 "Shipping <span class=\"em\">Budget</span>\n\tQT300 Accessories Specs\t\t\t\t\t\tCosts Chart\n\t\t\tContinue?\tWhich Regions?\t\t\tPackages\tCount of Package 4\n\t\t\t\t\t\t\tPackage 1\t19\n\t\t\t\t\t\t\tPackage"             ],             "content_en": [                 "Shipping <span class=\"em\">Budget</span>\n\tQT300 Accessories Specs\t\t\t\t\t\tCosts Chart\n\t\t\tContinue?\tWhich Regions?\t\t\tPackages\tCount of Package 4\n\t\t\t\t\t\t\tPackage 1\t19\n\t\t\t\t\t\t\tPackage"             ]         },         "id_example_4": {             "exactContent": [                 "Sales Goals?\n\nCheck Short Term Budgeting: In Progress\nBudgets: Over <span class=\"em\">Budget</span> by 12% Avg.\nCustomer Requests\n\nLitware Expense September \nBy Department\n\nR\t&amp;\tD\t25093\t24680\t23044\t21170\t20856\t20644\t20592\tMarketing"             ],             "content_en": [                 "Financial Reports Process\nInternational Sales Goals?\n\nCheck Short Term <span class=\"em\">Budgeting</span>: In Progress\n<span class=\"em\">Budgets</span>: Over <span class=\"em\">Budget</span> by 12% Avg.\nCustomer Requests\n\nLitware Expense September \nBy Department\n\nR\t&amp;\tD\t25093\t24680\t23044"             ]         }     },     "facet_counts": {         "facet_intervals": {},         "facet_queries": {             "date__lastmodified_facet_3": 4         },         "facet_fields": {             "extension": [                 "docx",                 2,                 "xlsx",                 2             ],             "author": [                 "denis dehenne",                 3,                 "microsoft office user",                 1             ],             "type_category": [],             "language": [                 "en",                 4             ],             "repo_source": [                 "Simple O365",                 4             ],             "urlHierarchy": [                 "0/",                 4,                 "1/xzr8j.sharepoint.com",                 4,                 "2/xzr8j.sharepoint.com/sites",                 4,                 "3/xzr8j.sharepoint.com/sites/wcontosoteam",                 4,                 "4/xzr8j.sharepoint.com/sites/wcontosoteam/_layouts",                 4,                 "5/xzr8j.sharepoint.com/sites/wcontosoteam/_layouts/15",                 4             ]         },         "facet_heatmaps": {},         "facet_ranges": {}    
"
      ],
      "labels": ["Today", "From Yesterday Up To 7 days", "From 8 Days Up To 30 days", "Older than 31 days", "No date"],
      "id": "date__lastmodified_facet",
      "minShow": 5,
      "show": true,
      "variant": "children_only",
      "children": [
        {
          "type": "DateFacetModificationDateCustom"
        }
      ]
    },
    {
      "type": "FieldFacet",
      "title": "Authors",
      "field": "author",
      "op": "OR",
      "variant": "autocomplete",
      "minShow": 3,
      "maxShow": 15,
      "show": true
    },
    {
      "type": "FieldFacet",
      "title": "Source",
      "field": "repo_source",
      "op": "OR",
      "minShow": 2,
      "maxShow": 5,
      "show": true
    },
    {
      "type": "FieldFacet",
      "title": "Extension",
      "field": "extension",
      "op": "OR",
      "minShow": 3,
      "maxShow": 15
    },
     {
      "type": "FieldFacet",
      "title": "Phone numbers present",
      "field": "entity_phone_present",
      "op": "OR",
      "minShow": 3,
      "maxShow": 15
    },
    {
      "type": "FieldFacet",
      "title": "Email addresses present",
      "field": "entity_special_present",
      "op": "OR",
      "minShow": 3,
      "maxShow": 15
    },
    {
      "type": "FieldFacet",
      "title": "Language",
      "field": "language",
      "op": "OR",
      "minShow": 3,
      "maxShow": 15,
      "show": true
    },
    {
      "type": "QueryFacet",
      "title": "Creation Date",
      "queries": [
        "creation_date:[NOW/DAY TO NOW]",
        "creation_date:[NOW/DAY-7DAY TO NOW/DAY]",
        "creation_date:[NOW/DAY-30DAY TO NOW/DAY-8DAY]",
        "creation_date:([1970-09-01T00:01:00Z TO NOW/DAY-31DAY] || [* TO 1970-08-31T23:59:59Z])",
        "creation_date:[1970-09-01T00:00:00Z TO 1970-09-01T00:00:00Z]"
      ],
      "labels": ["Today", "From Yesterday Up To 7 days", "From 8 Days Up To 30 days", "Older than 31 days", "No date"],
      "id": "date_facet",
      "minShow": 5,
      "show": false,
      "variant": "children_only",
      "children": [
        {
          "type": "DateFacetCustom"
        }
      ]
    },
    {
      "type": "QueryFacet",
      "title": "File size",
      "queries": [
        "original_file_size:[0 TO 102400]",
        "original_file_size:[102400 TO 10485760]",
        "original_file_size:[10485760 TO *]"
      ],
      "labels": ["Less than 100 KB", "From 100 KB to 10 MB", "More than 10 MB"],
      "id": "filesize_facet",
      "minShow": 5,
      "show": false,
      "children": [
        {
          "type": "FileSizeFacetCustom"
        }
      ]
    },
    {
      "type": "HierarchicalFacet",
      "field": "urlHierarchy",
      "title": "hierarchical facet",
      "show": false,
      "separator": "/"
    },
    {
      "type": "AggregatorFacet",
      "title": "Aggregator facet",
      "show": false
    }
  ],
  "center": {
    "main": [
      {
        "type": "NotConnectedUser",  
        "displayNotConnectedUserWarning": true
      },
      {
        "type": "SearchInformation",
        "data": ["filters", "facets"]
      },
      {
        "type": "ResultsList",
        "data": ["title", "url", "logo", "previewButton", "extract"],
        "folderLinkSources": ["enron"],
        "folderTarget": "_blank",
        "previewTarget": "_self"
      }
    ]
  },
  "right": [
    {
      "type": "DirectLinksWidget",
      "title": "Direct Links",
      "show": true,
      "visible": 1
    },
    {
      "type": "YellowPagesWidget",
      "title": "Yellow Pages",
      "show": true,
      "visible": 1
    }
  ],
  "searchBar": {
    "suggesters": [
      {
        "type": "BASIC",
        "props": {
          "maxSuggestion": 5,
          "title": "SUGGESTED QUERIES",
          "subtitle": "Queries extending your current query terms"
        },
        "aggregator": false
      },
      {
        "type": "ENTITY",
        "props": {
          "field": "entity_person",
          "suggester": "suggestEntityAuthors",
          "dictionary": "suggesterEntityAuthors",
          "asFacet": false,
          "maxSuggestion": 5,
          "title": "Authors suggested",
          "subtitle": "Queries extending your current query terms"
        }
      }
    ]
  },
  "queryParams": {
    "fields": [
      "title",
      "url",
      "id",
      "extension",
      "preview_content",
      "last_modified",
      "crawl_date",
      "author",
      "original_file_size",
      "emptied",
      "repo_source"
    ]
  },
  "hotkeys": {
    "activeSearchBar": {
      "cmd": "shift",
      "key": "S",
      "enable": false
    },
    "deactiveSearchBar": {
      "cmd": "escape",
      "enable": false
    }
  },
  "exportResults": {
    "excel": {
      "minResults": 1,
      "maxResults": 5000,
      "defaultResults": 100
    }
  },
  "ssoForcedAuthentication": {
    "enable": false
  },
  "devMode": {
    "enable": false,
    "banner": {
      "location": "BOTTOM",
      "content": "Dev mode banner content",
      "props": {
        "backgroundColor": "orange"
      }
    }
  }
}

Empty search

Here is the default request sent to the Datafari API for an empty input in the search bar:

https://datafariui.datafari.com/Datafari/rest/v2.0/search/select q: *:* fl: title,url,id,extension,preview_content,last_modified,crawl_date,author,original_file_size,emptied,repo_source sort: score desc q.op: AND rows: 10 start: 0 aggregator: facet: true facet.field: {!ex=author}author facet.field: {!ex=repo_source}repo_source facet.field: {!ex=extension}extension facet.field: {!ex=entity_phone_present}entity_phone_present facet.field: {!ex=entity_special_present}entity_special_present facet.field: {!ex=language}language facet.field: {!ex=urlHierarchy}urlHierarchy facet.query: {!key=date__lastmodified_facet_0}last_modified:[NOW/DAY TO NOW] facet.query: {!key=date__lastmodified_facet_1}last_modified:[NOW/DAY-7DAY TO NOW/DAY] facet.query: {!key=date__lastmodified_facet_2}last_modified:[NOW/DAY-30DAY TO NOW/DAY-8DAY] facet.query: {!key=date__lastmodified_facet_3}last_modified:([1970-09-01T00:01:00Z TO NOW/DAY-31DAY] || [* TO 1970-08-31T23:59:59Z]) facet.query: {!key=date__lastmodified_facet_4}last_modified:[1970-09-01T00:00:00Z TO 1970-09-01T00:00:00Z]

Pay attention to the bold parameter in the query. This is the only parameter that will be modified when searching for one or several words.

See also facet.field parameters. The entity_phone_present and entity_special_present values reflect the new facets present in this Datafari (refer to the ui-config.json provided above).

Response:

...

image-20240614-083343.pngImage Added

In the detailed response below, you find the first 10 documents in the response.docs objects with response.numFound=14. This last value is used to display the number of pages. 10 documents because of the default number of rows to be retrieved, which you will find the value in parameter rows in the query.

The “ids” in highlighting objects are empty, so the preview_content is displayed above.

Code Block
languagejson
{
    "response": {
        "docs": [
            {
                "preview_content": [
                    "September19, 2001\n\nKennedy Oil\n\n700 West 6th Street\n\nGillette, Wyoming 82716\n\nRe:\nGas Purchase Agreement (Reserves Committed/Index Pricing) between Enron North America Corp. (“ENA”) and Kennedy Oil (“Kennedy“) dated August 27, 1999 (the “Purchase Agreement”)\n\nTo Whom It May Concern:\n\nPursuant to Article 2.2 “Renegotiation/Gathering Option” of the Purchase Agreement, ENA is hereby giving Kennedy thirty (30) days advance written notice of ENA’s election to renegotiate the Contract Price.\n\nAny capitalized terms not defined herein, shall refer to those terms as they are defined in the Purchase Agreement.\n\nShould you have any questions, please do not hesitate to contact Mark Whitt at (303) 575-6473. \n\nSincerely,\n\nENRON NORTH AMERICA CORP.\n\nDebra Perlingiere\n\nLegal Specialist\n\nO:\\Legal\\DPerlin\\2001\\Letters\\Kennedy Renegotiation.doc"
                ],
                "extension": "doc",
                "author": [
                    "jrozycki"
                ],
                "original_file_size": 20992,
                "emptied": false,
                "crawl_date": "2024-03-20T09:52:47.411Z",
                "id": "file://///fileshare.datafari.com/share/Kennedy%20renegotiation.doc",
                "repo_source": "Enron",
                "title": [
                    "[date]",
                    "Kennedy renegotiation.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FKennedy%2520renegotiation.doc&id=1c166df1-99bc-4ffd-9b87-a17b89f19530",
                "last_modified": [
                    "2001-09-19T19:28:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/Kennedy%20renegotiation.doc"
            },
            {
                "preview_content": [
                    "The Next Frontier of Risk Management\n\nOne of the main trends defining the evolution of the financial sector in the United States over the last 40 years was disintermediation: replacement of traditional channels connecting savers and investors by alternative routes. There are many examples of this process. For example, the traditional way of financing housing in the United States for many decades of the 20th century was in the form of bank loans (or loans from the savings and loans institutions). The loans stayed on the balance sheets of the lending institutions till repayment. Beginning in the 1970’s a new financial technology was developed: mortgages and other housing related loans are being repackaged in the form of bonds, of different maturity and risk profiles, and transferred to the portfolios of institutional and individual investors. The same process is slowly taking place in the insurance industry.\n\nThe first symptoms of change became visible in the early 1990s with the introdu"
                ],
                "extension": "doc",
                "author": [
                    "Vince Kaminski"
                ],
                "original_file_size": 24064,
                "emptied": false,
                "crawl_date": "2024-03-20T09:52:47.615Z",
                "id": "file://///fileshare.datafari.com/share/insurance.doc",
                "repo_source": "Enron",
                "title": [
                    "The Next Frontier of Risk Management",
                    "insurance.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2Finsurance.doc&id=1c166df1-99bc-4ffd-9b87-a17b89f19530",
                "last_modified": [
                    "2000-05-15T13:22:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/insurance.doc"
            },
            {
                "preview_content": [
                    "MegawattDailyFT\nFINANCIAL TIMES\n\nEnergy\n\nTuesday, October 3, 2000\n\nFrom the publisher of Gas Daily® and Coal Outlook\n\n(Continued on page 8)\n\nReproduction by any means is illegal. © Copyright 2000 by Financial Times Energy\n\n(Continued on page 2)\n\nKey Hub Trades for\nStandard 16-Hour Daily\nProducts 10/03/00\nWeighted average index prices (in $/MWh)\nand volumes are shown for selected major\nhubs. More detailed price information is available\non page 3.\nDelivery Weighted Trading\nPoint Average Volume\n\nIndex Reported\nCOB 158.57 875\nMid-Columbia 150.98 1,175\nPalo Verde 152.54 1,775\nERCOT-B 56.29 700\nCom Ed 39.21 2,000\nEntergy 47.32 2,652\nCinergy 38.99 11,250\nPJM 41.66 5,900\nTVA 41.39 2,250\n\n(Continued on page 8)\n\nINSIDE THE MARKET REPORT\n\nWESTERN MARKETS:\n\no Generation crunch raises dailies\n\nBPA has no surplus power ............................ 4\n\nCENTRAL MARKETS:\n\no Mild weather calms market\n\nSPP falls $7 ................................................... 4\n\nEASTERN MARKETS:\n\no Maintenance outa"
                ],
                "extension": "pdf",
                "author": [
                    "MAbate"
                ],
                "original_file_size": 294083,
                "emptied": false,
                "crawl_date": "2024-03-20T09:52:47.731Z",
                "id": "file://///fileshare.datafari.com/share/mwdaily.10.03.2000.pdf",
                "repo_source": "Enron",
                "title": [
                    "md001003.P65",
                    "mwdaily.10.03.2000.pdf"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2Fmwdaily.10.03.2000.pdf&id=1c166df1-99bc-4ffd-9b87-a17b89f19530",
                "last_modified": [
                    "2000-10-02T19:03:44Z"
                ],
                "url": "file://///fileshare.datafari.com/share/mwdaily.10.03.2000.pdf"
            },
            {
                "preview_content": [
                    "GAS GATHERING AGREEMENT\n\nBETWEEN\n\nCRESTONE ENERGY VENTURES, L.L.C.\n\nAND\n\nENRON NORTH AMERICA CORP.\n\nDATED may __, 2001\n\nGAS GATHERING AGREEMENT\n\nTABLE OF CONTENTS\n\n\tARTICLE\n\t\n\tPAGE\n\n\tI\n\t\n\tDEFINITIONS\n\t1\n\n\tII\n\t\n\tGAS TO BE GATHERED\n\t3\n\n\tIII\n\t\n\tRATES AND STATEMENTS\n\t4\n\n\tIV\n\t\n\tTERM AND MINIMUM VOLUME\n\t5\n\n\tV\n\t\n\tRECEIPT Point(S), DELIVERY POINT(S), QUALITY, PRESSURES, AND REDUCTIONS\n\t5\n\n\tVI\n\t\n\tINTERRUPTION OF SERVICE\n\t6\n\n\tVII\n\t\n\tSCHEDULING OF RECEIPTS AND DELIVERIES AND IMBALANCE RESOLUTION\n\t8\n\n\tVIII\n\t\n\tREGULATORY REQUIREMENTS, CONDITIONS PRECEDENT AND REPRESENTATIONS\n\t9\n\n\tIX\n\t\n\tNOTICES\n\t10\n\n\tX\n\t\n\tRIGHTS OF WAY\n\t11\n\n\tXI\n\t\n\tmiscellaneous\n\t11\n\n\tXII\n\t\n\tFORCE MAJEURE\n\t13\n\n\tXIII\n\t\n\tINDEMNIFICATION AND LIMITATION OF LIABILITY\n\t14\n\n\tXIV\n\t\n\tTAXES\n\t15\n\n\tXV\n\t\n\tGOVERNING LAW\n\t16\n\n\t\n\t\n\tEXHIBIT \"A\"\n\t\n\n\t\n\t\n\tEXHIBIT \"B\"\n\t\n\n\t\n\t\n\tEXHIBIT \"C\"\n\t\n\n\t\n\t\n\tAPPENDIX\n\t\n\n\nThis Table of Contents is attached for convenience purposes only and is not considered a part of the Agreement.\n\nGAS GATHERING AGREEMENT\n\nTHIS AGREE"
                ],
                "extension": "doc",
                "author": [
                    "Pat Radford"
                ],
                "original_file_size": 159232,
                "emptied": false,
                "crawl_date": "2024-03-20T09:52:47.927Z",
                "id": "file://///fileshare.datafari.com/share/ENA-Crestone%20red%20vs%20ENA-Lost%20Creek.doc",
                "repo_source": "Enron",
                "title": [
                    "NORTH CENTRAL DRAFT 02/10/00",
                    "ENA-Crestone red vs ENA-Lost Creek.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FENA-Crestone%2520red%2520vs%2520ENA-Lost%2520Creek.doc&id=1c166df1-99bc-4ffd-9b87-a17b89f19530",
                "last_modified": [
                    "2001-07-02T19:23:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/ENA-Crestone%20red%20vs%20ENA-Lost%20Creek.doc"
            },
            {
                "preview_content": [
                    "Legal_Org (current).ppt\n\nEnron Wholesale Services Legal Department\nMark E. Haedicke\nManaging Director & General Counsel\nEnron North America\nWest Origination\nEast & Upstream Origination / Gas Trading\nM&A / Investments / Energy Capital\nPower Trading\nCanada\nIndustrial\nGlobal Markets\nLitigation\nEurope\nSheila Tweed\nVP & AGC\nBarbara Gray\nVP & GC\nJeff Hodge\nVP & AGC\nElizabeth Sager\nAGC\nPeter Keohane\nAGC\nJulia Murray\nMD & GC\nAlan Aronowitz\nVP & GC\nDan Rogers\nAGC\nRichard Sanders\nAGC\nMark Evans\nGC\n(see attached)\nLance Schuler\nVP & AGC\nTravis McCullough\n AGC\n(1) \tChief Legal Technical Officer\n*\tTeam Leader\n**\tAsia Pacific Team Leader\nKaren Jones*\nAsst. Gen’l Counsel\n(Portland)\n\nBob Carter\nSenior Counsel\n\nBart Clark\nSenior Counsel\n\nAl Larsen\nSenior Counsel\n(Portland)\n\nDale Rasmussen\nSenior Counsel\n(Portland)\n\nEd Hearn, III\nSr. Legal Specialist\n\nMatt Maxwell\nLegal Specialist\nShonnie Daniel\nAsst. Gen’l Counsel\n\nSteve Van Hooser\nAsst. Gen’l Counsel\n\nRoger Balog\nSenior Counsel\n\nPeggy Banczak\nSenior Co"
                ],
                "extension": "ppt",
                "author": [
                    "sstrong"
                ],
                "original_file_size": 65024,
                "emptied": false,
                "crawl_date": "2024-03-20T09:52:48.113Z",
                "id": "file://///fileshare.datafari.com/share/EWSLegalDeptOrgChart5.ppt",
                "repo_source": "Enron",
                "title": [
                    "No Slide Title",
                    "EWSLegalDeptOrgChart5.ppt"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FEWSLegalDeptOrgChart5.ppt&id=1c166df1-99bc-4ffd-9b87-a17b89f19530",
                "last_modified": [
                    "2000-12-01T23:41:56Z"
                ],
                "url": "file://///fileshare.datafari.com/share/EWSLegalDeptOrgChart5.ppt"
            },
            {...},
            {...},
            {...},
            {...},
            {...}
        ],
        "numFound": 9150,
        "start": 0,
        "numFoundExact": true
    },
    "responseHeader": {...},
    "highlighting": {
        "file://///fileshare.datafari.com/share/Kennedy%20renegotiation.doc": {},
        "file://///fileshare.datafari.com/share/Mm-GC%201.doc": {},
        "file://///fileshare.datafari.com/share/ENA-Crestone%20red%20vs%20ENA-Lost%20Creek.doc": {},
        "file://///fileshare.datafari.com/share/Final%20GPG%20May%2026.ppt": {},
        "file://///fileshare.datafari.com/share/MidAmerican%20Energy%20Company%20Annex%2010-18-01.doc": {},
        "file://///fileshare.datafari.com/share/mwdaily.10.03.2000.pdf": {},
        "file://///fileshare.datafari.com/share/EWSLegalDeptOrgChart5.ppt": {},
        "file://///fileshare.datafari.com/share/ep_alt_072100_16_pdf.pdf": {},
        "file://///fileshare.datafari.com/share/entire%20bill.pdf": {},
        "file://///fileshare.datafari.com/share/insurance.doc": {}
    },
    "facet_counts": {
        "facet_intervals": {},
        "facet_queries": {
            "date__lastmodified_facet_4": 0,
            "date__lastmodified_facet_3": 9150,
            "date__lastmodified_facet_2": 0,
            "date__lastmodified_facet_1": 0,
            "date__lastmodified_facet_0": 0
        },
        "facet_fields": {
            "entity_phone_present": [
                "no phone",
                9005,
                "phone present",
                145
            ],
            "extension": [
                "doc",
                7320,
                "pdf",
                1131,
                "ppt",
                678,
                "docx",
                7,
                "jpg",
                4,
                "xls",
                4,
                "txt",
                3,
                "xlsx",
                2,
                "fr",
                1
            ],
            "entity_special_present": [
                "no mail address",
                7830,
                "mail address present",
                1320
            ],
            "author": [
                "ect",
                414,
                "lzook",
                153,
                "gnemec",
                104,
                ...
                "cstclai",
                10
            ],
            "language": [
                "en",
                9102,
                "fr",
                43,
                "de",
                5
            ],
            "repo_source": [
                "Enron",
                9150
            ],
            "urlHierarchy": [
                "0/",
                9150,
                "1/fileshare.datafari.com",
                9150,
                "2/fileshare.datafari.com/share",
                9150,
                "3/fileshare.datafari.com/share/subpart",
                101,
                "3/fileshare.datafari.com/share/spacyfr",
                33,
                "3/fileshare.datafari.com/share/ocrdoc",
                16,
                "4/fileshare.datafari.com/share/ocrdoc/subfolder",
                2,
                "3/fileshare.datafari.com/share/jpeg",
                1,
                "3/fileshare.datafari.com/share/newspacy",
                1
            ]
        },
        "facet_heatmaps": {},
        "facet_ranges": {}
    }
}

Term(s) search

Except for the “q” parameter, an empty search is not different from a search with terms. So we don’t repeat the full query here, but we specify the “q” parameter: q=watercraft.

Response:

...

In the detailed response below, you find the first 10 documents in the response.docs objects with response.numFound=49

In the detailed response below, there are “ids” in the highlighting objects that are filled in and others that are not. When highlighting is available, the text displayed is the concatenation of the texts present in this object (exactContent and content_en). Otherwise, it is the preview_content.

Code Block
{
    "spellcheck": {
        "collations": [],
        "suggestions": [],
        "correctlySpelled": true
    },
    "response": {
        "docs": [
            {
                "preview_content": [
                    "DRAFT\n\n9/9/99\n\n\nTERM SHEET\n\nEngineering, Procurement and Construction Contract\n\n(“EPC Contract”) - Naco-Nogales, Sonora State Project\n\nParties:\nTo be formed Mexican project company (the “Owner”) and Enron Engineering & Construction Company (the “Contractor”); provided however, Contractor may assign the EPC Contract to an affiliate or subsidiary with the prior consent of Owner, which consent shall not be unreasonably withheld.\n\nBidding Guidelines:\nBidding Guidelines (as amended, the “Bidding Guidelines”) issued by Comisión Federal de Electricidad (“CFE”) on October 15, 1998 as part of Invitation to Bid #18164093-006-98 (the “Invitation to Bid”).\n\nProject:\nThe power plant and related facilities in Agua Prieta, Sonora State, Mexico that are required to be built pursuant to (i) the Invitation to Bid and the Bidding Guidelines (Rev. 2) (dated June 29, 1999) and (ii) the agreement to provide power to Grupo Mexico, S.A. de C.V. (“Grupo Mexico”) and further described in the proposal (the “Owne"
                ],
                "extension": "doc",
                "author": [
                    "appinst"
                ],
                "original_file_size": 116224,
                "emptied": false,
                "crawl_date": "2024-03-20T09:55:39.556Z",
                "id": "file://///fileshare.datafari.com/share/epctermsheet.doc",
                "repo_source": "Enron",
                "title": [
                    "TERM SHEET",
                    "epctermsheet.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2Fepctermsheet.doc&id=02358884-7b9f-48fd-b52d-5b9192dd9731",
                "last_modified": [
                    "2000-08-25T16:52:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/epctermsheet.doc"
            },
            { ... },
            {
                "preview_content": [
                    "Exhibit C\n\nMINIMUM INSURNACE REQUIREMENTS\n\nPRIVATE \n\n\nHanover shall, beginning with commencement of the Services or any portion thereof, procure and maintain throughout the course of this Agreement, insurance coverages of the types and in the amounts hereinafter set forth:\n\nA.  Workers Compensation \nWorkers Compensation Insurance in full compliance with laws of the state(s)  where the Services are performed.  These policies shall be endorsed to provide: all states coverage, voluntary compensation coverage and occupational disease.  If the Services is to be performed on or near navigable waters, the policy shall include coverage for United States Longshoreman's and Harbor Worker's Act, Death on the High Seas, Jones Act, and all shall contain endorsement for borrowed servants.\n\nWorkers Compensation\nStatutory\n\nB.  Employers Liability Insurance\nEmployers Liability\n$1,000,000 Each Accident (Minimum)\n\n\n$1,000,000 Disease Each Employee (Minimum)\n\nC.  General Liability Insurance\nGeneral Liabil"
                ],
                "extension": "doc",
                "author": [
                    "dmarsha"
                ],
                "original_file_size": 30208,
                "emptied": false,
                "crawl_date": "2024-03-20T09:54:11.101Z",
                "id": "file://///fileshare.datafari.com/share/Hanover%20Compressor%20Insurance.doc",
                "repo_source": "Enron",
                "title": [
                    "Hanover Compressor Insurance.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FHanover%2520Compressor%2520Insurance.doc&id=02358884-7b9f-48fd-b52d-5b9192dd9731",
                "last_modified": [
                    "1999-08-26T14:19:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/Hanover%20Compressor%20Insurance.doc"
            },
            {
                "preview_content": [
                    "GALLUP, NEW MEXICO\n\nELECTRIC MOTOR DRIVER AND POWER FACILITIES\n\nENGINEERING, PROCUREMENT, AND\n\nCONSTRUCTION AGREEMENT\n\n1.\nPARTIES\n\n\n\nOwner:\n\n\n\nContractor:\nENRON COMPRESSION SERVICES COMPANY, a Delaware Corporation (which expression shall include successors and permitted assigns); and\n\nENRON ENGINEERING & CONSTRUCTION COMPANY, a Delaware Corporation (which expression shall include successors and permitted assigns)\n\n\n\n2.\nOWNER'S\n\n\nREPRESENTATIVE:\nOwner shall, by notice in writing to the Contractor, appoint a person to act in the capacity of the Owner's Representative with full authority to act on behalf of the Owner under this Agreement.\n\n\n\n3.\nCONTRACTOR'S\n\n\nREPRESENTATIVE:\nThe Contractor shall, by notice in writing to the Owner, appoint a person to act in the capacity of the Contractor's Representative with full authority to act on behalf of the Contractor under the Agreement.\n\n\n\n4.\nSCOPE OF WORK:\nThe facilities to be constructed on behalf of Owner consist of  the electric tap and trans"
                ],
                "extension": "doc",
                "author": [
                    "Pat Radford"
                ],
                "original_file_size": 44544,
                "emptied": false,
                "crawl_date": "2024-03-20T09:57:04.793Z",
                "id": "file://///fileshare.datafari.com/share/Gallup%20Construction1.doc",
                "repo_source": "Enron",
                "title": [
                    "BISTI, NEW MEXICO",
                    "Gallup Construction1.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FGallup%2520Construction1.doc&id=02358884-7b9f-48fd-b52d-5b9192dd9731",
                "last_modified": [
                    "2000-03-22T16:13:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/Gallup%20Construction1.doc"
            },
            { ... },
            { ... },
            {
                "preview_content": [
                    "Enron Broadband Services, Inc.\n\nGeneral Services Agreement (GSA)\nDate:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAgreement #\n\n\n\n\n\n\n\n\n\n\n\n              Contractor's Fed. Tax ID#\n\n\n\n\nTHIS GENERAL SERVICES AGREEMENT (“Agreement”) is made and entered into as of the date written above by and between:\n\n\n\nEnron Broadband Services, Inc. (“EBS”)\n\nAttn:   Contracts Administration\n\n1400 Smith St., Houston, TX  77002\n\nTelephone:  800-973-6766\n\nand,\n\n“Contractor”\n\nName:\n \n\n\n\n\n\n,a\n\n\n\n\n\nAddress:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nTelephone:\n\n\n\nFax:\n\n\nEmail:\n\n\n\n\nWHEREAS, EBS is constructing one or more fiber optic telecommunications routes and requires from time to time various engineering, construction, inspection and other services related to such construction projects; and\n\nWHEREAS, EBS may from time to time desire to contract with Contractor for the performance of various services related to such construction projects; and\n\nWHEREAS, Contractor is knowledgeable and experienced in the services necessary to any such performance that it will unde"
                ],
                "extension": "doc",
                "author": [
                    "merle_mckay"
                ],
                "original_file_size": 148480,
                "emptied": false,
                "crawl_date": "2024-03-20T09:56:40.608Z",
                "id": "file://///fileshare.datafari.com/share/GSA%20Revised%201-26-01.doc",
                "repo_source": "Enron",
                "title": [
                    "ENRON COMMUNICATIONS",
                    "GSA Revised 1-26-01.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FGSA%2520Revised%25201-26-01.doc&id=02358884-7b9f-48fd-b52d-5b9192dd9731",
                "last_modified": [
                    "2001-09-26T00:29:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/GSA%20Revised%201-26-01.doc"
            },
            { ... },
            {
                "preview_content": [
                    "PROFESSIONAL SERVICES AGREEMENT\n\nBETWEEN\n\nENRON COMPRESSION SERVICES COMPANY\n\nAND\n\nPOWER ENGINEERS, INC.\n\t\n\n\t\n\n\nPROFESSIONAL SERVICES AGREEMENT\n\nTHIS AGREEMENT, made and entered into by and between Enron Compression Services Company, a Delaware corporation with general offices at 1400 Smith Street, Houston, Texas, (hereinafter referred to as “Company”) and POWER Engineers, Inc., a _______________ corporation, with general offices at 1295 S. Eagle Flight Way, Boise, Idaho 83709 (hereinafter referred to as “Contractor”);\n\nWITNESSETH THAT:\nWHEREAS, Company has need for certain services, hereinafter described, to be performed by an independent contractor; and\n\nWHEREAS, Contractor understands the types of services required by Company and represents that it has the necessary personnel, experience, competence, and legal right to perform the services; and\n\nWHEREAS, Company desires to engage Contractor to perform the services and Contractor desires to undertake such performance under the terms,"
                ],
                "extension": "doc",
                "author": [
                    "M_SAFTY"
                ],
                "original_file_size": 170496,
                "emptied": false,
                "crawl_date": "2024-03-20T09:56:56.036Z",
                "id": "file://///fileshare.datafari.com/share/Enron%20revision.doc",
                "repo_source": "Enron",
                "title": [
                    "Enron: Professional Services Agt.",
                    "Enron revision.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FEnron%2520revision.doc&id=02358884-7b9f-48fd-b52d-5b9192dd9731",
                "last_modified": [
                    "2001-06-06T21:56:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/Enron%20revision.doc"
            },
            {
                "preview_content": [
                    "CONTRACT EXHIBITS  EXECUTION COPY\n\n SIMPLE CYCLE POWER PLANT\n\n4EXHIBIT A CONTRACT PRICE AND PAYMENT SCHEDULE\n\nEXHIBIT A-1   CONTRACTOR’S AFFIDAVIT\n6\nEXHIBIT A-2   FORM OF LIEN WAIVER\n8\nEXHIBIT B  WORK SCHEDULE\n9\nEXHIBIT C  SCOPE OF WORK\n10\nEXHIBIT C-1  CONTRACTOR CLARIFICATIONS\n11\nEXHIBIT C-2  COMBUSTION TURBINE SCOPE OF SUPPLY\n12\n3.1\nGas Turbine Systems\n12\n3.1.1\nGas Turbine\n12\n3.1.2\nCombustion System\n12\n3.1.3\nFuel Systems\n12\n3.1.4\nLubricating and Hydraulic Systems\n13\n3.1.5\nInlet System\n14\n3.1.6\nExhaust System\n15\n3.1.7\nCouplings\n16\n3.1.8\nGas Turbine Packaging\n16\n3.1.9\nFire Protection System\n17\n3.1.10\nCleaning Systems\n17\n3.1.11\nCooling Water System\n17\n3.1.12\nStarting Systems\n17\n3.1.13\nMiscellaneous Systems\n17\n3.2\nGenerator\n17\n3.2.1\nGeneral Information\n17\n3.2.2\nGenerator Lube Oil Systems and Equipment\n18\n3.2.3\nGenerator Grounding Equipment\n19\n3.2.4\nGenerator Temperature Devices\n19\n3.2.5\nPackaging, Enclosures, and Compartments\n19\n3.2.6\nElectrical Equipment\n20\n3.2.7\nGenerator Excitation Sy"
                ],
                "extension": "doc",
                "author": [
                    "eecc"
                ],
                "original_file_size": 284672,
                "emptied": false,
                "crawl_date": "2024-03-20T09:55:13.810Z",
                "id": "file://///fileshare.datafari.com/share/EPC-Exhibits.doc",
                "repo_source": "Enron",
                "title": [
                    "Exhibit A to Owner-Contractor Agreement",
                    "EPC-Exhibits.doc"
                ],
                "click_url": "https://demo.datafari.com/Datafari/rest/v2.0/url?url=file%3A%2F%2F%2F%2F%2Ffileshare.datafari.com%2Fshare%2FEPC-Exhibits.doc&id=02358884-7b9f-48fd-b52d-5b9192dd9731",
                "last_modified": [
                    "2000-10-21T19:31:00Z"
                ],
                "url": "file://///fileshare.datafari.com/share/EPC-Exhibits.doc"
            }
        ],
        "numFound": 49,
        "start": 0,
        "numFoundExact": true
    },
    "responseHeader": {...},
    "highlighting": {
        "file://///fileshare.datafari.com/share/GSA%20Revised%201-26-01.doc": {
            "exactContent": [
                "Protection and Indemnity insurance if the Work necessitates the use of <span class=\"em\">watercraft</span> of any kind.\n\nHull\n\n\nFull replacement cost of the <span class=\"em\">watercraft</span> (Minimum)\n\nP &amp; I\n$1,000,000 Each Occurrence or the full value of the"
            ],
            "content_en": [
                "operations (for a minimum of two years after acceptance of the Work).  <span class=\"em\">Watercraft</span> exclusions deleted (if Work necessitates the use of <span class=\"em\">watercraft</span> of any kind.)\n\nBodily Injury and\n$1,000,000 Combined Single Limit"
            ]
        },
        "file://///fileshare.datafari.com/share/Hanover%20Compressor%20Insurance.doc": {
            "exactContent": [
                "Watercraft exclusions deleted (if the Services necessitate the use of <span class=\"em\">watercraft</span> of any kind.)\n\nBodily Injury\n$1,000,000 Each Occurrence (Minimum)\n\nProperty Damage\n$1,000,000 Each Occurrence (Minimum)\n\n   \n\n OR"
            ],
            "content_en": [
                "for a minimum of two years after acceptance of the Services).  <span class=\"em\">Watercraft</span> exclusions deleted (if the Services necessitate the use of <span class=\"em\">watercraft</span> of any kind.)\n\nBodily Injury\n$1,000,000 Each Occurrence (Minimum"
            ]
        },
        "file://///fileshare.datafari.com/share/Jode%20GSA%2011.06.01.doc": { Highlighted texts... },
        "file://///fileshare.datafari.com/share/LRCI%20Amended%20Ins.%20Sections%20Insurance.doc": { Highlighted texts... },
        "file://///fileshare.datafari.com/share/Jode%20GSA%20%20-%20Revised%2011.07.01.doc": { Highlighted texts... },
        "file://///fileshare.datafari.com/share/EXHIBIT%20C%20to%20O%26M.doc": { Highlighted texts... },
        "file://///fileshare.datafari.com/share/epctermsheet.doc": {},
        "file://///fileshare.datafari.com/share/Gallup%20Construction1.doc": {
            "exactContent": [
                "Operations (for a minimum of two year after acceptance of the Work).  <span class=\"em\">Watercraft</span> exclusions deleted (if Work necessitates the use of <span class=\"em\">watercraft</span> of any kind).\n\nBodily Injury\n\n\n\n$1,000,000 Each Occurrence (Minimum"
            ],
            "content_en": [
                "Operations (for a minimum of two year after acceptance of the Work).  <span class=\"em\">Watercraft</span> exclusions deleted (if Work necessitates the use of <span class=\"em\">watercraft</span> of any kind).\n\nBodily Injury\n\n\n\n$1,000,000 Each Occurrence (Minimum"
            ]
        },
        "file://///fileshare.datafari.com/share/Enron%20revision.doc": {},
        "file://///fileshare.datafari.com/share/EPC-Exhibits.doc": {}
    },
    "facet_counts": {
        "facet_intervals": {},
        "facet_queries": {
            "date__lastmodified_facet_4": 0,
            "date__lastmodified_facet_3": 49,
            "date__lastmodified_facet_2": 0,
            "date__lastmodified_facet_1": 0,
            "date__lastmodified_facet_0": 0
        },
        "facet_fields": {
            "entity_phone_present": [
                "no phone",
                49
            ],
            "extension": [
                "doc",
                48,
                "pdf",
                1
            ],
            "entity_special_present": [
                "no mail address",
                47,
                "mail address present",
                2
            ],
            "author": [
                "eecc",
                14,
                "appinst",
                7,
                "m_safty",
                4,
                "carolyn buckles",
                3,
                "hyde, earl",
                3,
                "merle_mckay",
                3,
                "a&k",
                2,
                "dan olson",
                2,
                ...
                "pat radford",
                1
            ],
            "language": [
                "en",
                49
            ],
            "repo_source": [
                "Enron",
                49
            ],
            "urlHierarchy": [
                "0/",
                49,
                "1/fileshare.datafari.com",
                49,
                "2/fileshare.datafari.com/share",
                49
            ]
        },
        "facet_heatmaps": {},
        "facet_ranges": {}
    }
}