Versions Compared

Key

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

...

Since the level in the sort works the same as the display and keywords it means that we can add additional text to the sort, and this can be used to our advantage to ensure that the order of the different types of entities found can be displayed to the user in a certain order. For example if we search enabled suburbs, roads and property addresses then we could use the sort field to ensure that suburbs are always listed first then followed by roads and then properties (regardless of how "well" the actual results match the search). To do this with our previous example we could change the level1 tag of the sort to

Code Block
xmlxml
linenumberstrue
    <level1>0020 ${suburb} ${name}</level1>

...

The first format has a single line for each group of synonyms with the alternatives separated by a comma, for example:

Code Block
nonenone
linenumberstrue
ST,STR,STREET

And the seconds format has the original word followed by an equals sign and a space separated list of alternatives, for example:

true
Code Block
nonenonelinenumbers
abandon=vacate
revoke=vacate
vacate=abandon revoke

...

To switch to the older method of generating indexes you can set

Code Block
languagexml
	<geometryFirst>true</geometryFirst>

...