src/main/resources/conf
.
Edit services/api/fusion.conf
- this file controls which Fusion server to use:
host
to be the hostname of your Fusion server, e.g. host: localhost
or host: fusion.example.com
port
to be the port of your Fusion server - this is 8764
by default, which is preconfigured for you.platforms/fusion/data.conf
- this file configures which data in Fusion to use:
YOUR_QUERY_PROFILE
with the name of the Fusion Query Profile you wish to direct your queries through. If you have created an app via the Fusion UI called MyAwesomeApp
, then you will have a default Query Profile called MyAwesomeApp
as well - this is a good starting point: e.g. query-profile: MyAwesomeApp
.platforms/fusion/social.conf
- this file configures the Lucidworks Appkit Social Module:
YOUR_FUSION_APP
with the name of your Fusion app, as used above: e.g. collection: YOUR_FUSION_APP_user_prefs
becomes collection: MyAwesomeApp_user_prefs
. This configures the Appkit SDK to store social data in the _user_prefs
sidecar collection associated with MyAwesomeApp
.platforms/fusion/suggestions.conf
- this file configures search suggestions:
YOUR_QUERY_PROFILE
with the name of the Fusion Query Profile you wish to direct your search suggestion queries through. This can be the same Query Profile as you are using for search queries, e.g. query-profile: MyAwesomeApp
.message/service/fusion.conf
- this file configures how Signals are sent to Fusion:
YOUR_QUERY_PROFILE
with the name of your query profile, as used above: e.g. query-profile: MyAwesomeApp
../app-studio start
./app-studio stop
./app-studio package
app-studio.bat start
app-studio.bat stop
app-studio.bat package
http://localhost:8080
. You will be asked to authenticate, for which you can use any of your Fusion “native realm” users - if you are just getting started with Fusion, this will be your Fusion admin
username and password.
When building an application for production environments the security realm can be configured in the src/main/resources/conf/security/fusion.conf
file.
src/main/webapp/views/search.html
defines the main page layout of your application. App Studio Enterprise is pre-configured to work out of the box with Lucidworks Fusion, but you may wish to customize which fields you use in your results.
Let us get started!
styling="title"
means that it will be used as the result title - no need to change this, but it will help you find the right tag!name="title_s"
configures the application to use the value of the title_s
field as the displayed title text for each result. If your document titles are stored in a different field, replace title_s
with the name of that field.urlfield="id"
configures the application to use the value of the id
field as the hyperlink - when users click on the title, they will be navigated to whatever URL is in the id
field for that result. If your document URLs are stored in a different field, replace id
with the name of that field.label="Description"
will help you find the right tag.name="description_s"
configures the application to use the value of the description_s
field for the description text of each search result. If your descriptions are stored in a different field, replace id
with the name of that field.keywords_s
field, if it exists. We can add or remove facets very simply:
Find the tag that looks like this:
facets="keywords_s"
adds the ability to facet on the keywords_s
field to the query. We can remove this, or add some more facets - this parameter takes a comma-separated list of field names.
Try facets="keywords_s,charSet_s"
, or replace the value entirely with a list of your own facet fields.
.html
).js
).less
).css
).jsp
)*.conf
)clean jetty:run -Pdevelopment --settings ./bin/settings.xml -Dtwigkit.conf.watch=true
, then click “Ok”.app-studio.lic
. Once this expires, contact Lucidworks for a new license: https://lucidworks.com/contact/
-f
Start App Studio in foreground.
-p <port>
Specify the port to start the App Studio web server on; default is 8080.
-P <profile>
Specify the Appkit profile to use when App Studio starts; defaults to development.
-m <memory>
Sets the min (-Xms) and max (-Xmx) heap size for the JVM, such as: -m 4g results in: -Xms4g -Xmx4g; by default, this script sets the heap size to 512m.
-t <timeout>
Sets the startup timeout in seconds (defaults to 240).
-V
Verbose messages from the startup script.
-p <port>
Specify the port the App Studio HTTP listener is bound to.
-P <profile>
Specify the Appkit profile to use when App Studio is packaged; defaults to development.
./dist
.package
Package App Studio Enterprise then build a Docker image.
start
Package App Studio Enterprise, build a Docker image, then run a container on port 8080.
-P <profile>
Specify the Appkit profile to use when App Studio Enterprise is packaged; defaults to development.
-i <image_name>
Specify the image name to use when App Studio Enterprise is built as a Docker image; defaults to app-studio-enterprise. The image will be tagged as the latest.
class
to any component that needs to be customized in an .html
file.
for example:
customClass
has been added.
custom.less
which is located in src/main/webapp/styles/includes/custom.less
.
-Dtwigkit.ssl=true
required to turn on secure modekeystore.jks
or create your own keystore file. You can then configure SSL via:
-Dtwigkit.https.port
optionally sets the HTTPS port (defaults to 8765)-Dtwigkit.http.port
optionally sets the HTTP port (defaults to 8080)-Dtwigkit.keystore.file
keystore filename / location relative to webapp (defaults to ‘keystore.jks’)-Dtwigkit.keystore.password
password to the keystore (defaults to ‘p4ssw0rd’)-Dtwigkit.keystore.alias
name of the key in the keystore to be used (defaults to ‘default-key’)/bin/twigcrypt.zip
.
For more details on how to use Twigcrypt, refer to the README inside the zip file.