The $LWE_HOME/app/examples/csharp directory contains utilities demonstrating some of the LucidWorks Enterprise REST API features from C# code. These utilities can be used to assist people in managing their LucidWorks Enterprise installation, or as an example of how to write C# code as part of customer applications that will interact with LucidWorks Enterprise and Solr.
Dependencies
All of these tools require that the "Json.NET" DLL be installed.
All of these tools assume that the main URL for LucidWorks Enterprise is "http://localhost:8888". If LucidWorks Enterprise is running elsewhere, please set the LWE_URL Environment variable appropriately in the shell where you will be using these tools.
All of these tools deal with "collection1" by default. To use a different collection, please set the LWE_COLLECTION Environment variable appropriately in the shell where you will be using these tools.
Basic Usage
| All of these tools can be run without any arguments to see "help" info about their usage. |
Get Some basic Info about the collection...
info.exe show info.exe show index_num_docs index_size free_disk_space
View, Modify Settings...
settings.exe show
settings.exe show boost_recent stopword_list
settings.exe update boost_recent=false stopword_list=a stopword_list=an stopword_list=the
(note that creating a list is done by specifying the same setting key multiple times)
Execute Searches (with optional filters)
search.exe "gtk gnome" search.exe "gtk -gnome" search.exe "+gtk +gnome" "mimeType:text/html"