Configure Autocomplete
solrconfig.xml
to use the Terms component; it is preconfigured.config/services/suggestions/terms.conf
.
Its default content is as follows:
source: platforms.fusion
to source: platforms.fusion.data
.
term-fields
as a comma-separated list of fields in your data from which to retrieve terms.
terms.fl
parameter.title
to describe the group of suggestions returned by Fusion.
This title can be used to group suggestions in the UI. If you are implementing only one group of suggestions, you can leave this blank or set it to something generic, like “Suggested phrases”.
app/views/partials/header.tpl.html
.
Localize an App
<translations:localize>
JSP tag to load a set of UI label translations into an app. The tag syntax is:dictionary
. Name of the resource bundle from which to load translations. This is also the first part of the name of each property file that contains translations.
Default: translations
locale
. Locale
Default: en
(English)
dictionary
and locale
are used to find the file as follows:src/main/resources
, the Appkit translation service looks for a resource bundle named dictionary
, for example, translations
.{resource}
, for example, for the files translations_en.properties
and translations_fr.properties
.src/main/resources
directory. For example, for a dictionary called translations
add translations_en.properties
and translations_fr.properties
.translations_en.properties
:
translations_fr.properties
:
components.response-statistics.showing
is Showing {first} - {last} of {total}
in English. Translations should retain the variables, though their order might differ. Labels can use <em>
tags for emphasis, for example, More results like <em>{result}</em>
.pom.xml
:
taglib
directive at the top of your app’s index.jsp
:
<translations:localize>
JSP tag inside the <head>
element of your app’s index.jsp
:
url-rules.xml
file:
<translations:localize>
JSP tag works the same.Run App Studio in Demo Mode
app-studio start
or app-studio.bat start
and go to http://localhost:8080/
to view your demo deployment. The code editor is available in the demo interface; you can hide this by using the --production
flag.app-studio
or app-studio.bat
script like this:http://localhost:8080/
.—production | Run App Studio in “production mode”, with the code editor and wizard disabled. This gives you a preview of what your UI will look like in a production deployment. |
-f | Start App Studio in the foreground. By default, App Studio starts in the background and sends stdout/stderr to app-studio-PORT-console.log . |
-p <port> | Specify the port on which to start the App Studio Web server; the default is 8080. |
-m <memory> | Set the minimum (-Xms ) and maximum (-Xmx ) heap size for the JVM, such as -m 4g which results in -Xms4g -Xmx4g . By default, this script sets the heap size to 512MB. |
-t <timeout> | Set the startup timeout in seconds; the default is 120. |
app-studio stop
or app-studio.bat stop
:-p
flag specifies the port to which the App Studio HTTP listener is bound.Use the Code Editor
app-studio/app/views/search.html
in version 4.0), using App Studio’s markup tags. Your search interface reloads automatically when you save your changes in the code editor.The code editor is also where you can publish your search interface to Fusion Server.⌘-S
/CTRL-S
) saves the file and reloads the page to display your updated interface:Download an App Studio Project (4.2)
.zip
file.The project directory includes tools for running a demo deployment or compiling an application for a production deployment..zip
file from its configuration panel in App Studio..zip
file.