The documents are returned sorted on relevance depending on order, proximity, frequency of terms.
Default search behavior
By default, all search terms are optional. It behaves like an OR logic. Objects that contain the more terms are rated higher in the results and will appear first in their type. For example, wiki forum will find:
- objects that include both terms
- objects that include the term wiki
- objects that include the term forum
Requiring terms
Add a plus sign ( + ) before a term to indicate that the term must appear in results. Example: +wiki forum will find objects containing at least wiki. Objects with both terms and many occurences of the terms will appear first.
Excluding terms
Add a minus sign ( - ) before a term to indicate that the term must not appear in the results. To reduce a term's value without completely excluding it, use a tilde. Example: -wiki forum will find objects that do not contain wiki but contain forum
Grouping terms
Use parenthesis ( ) to group terms into subexpressions. Example: +wiki +(forum blog) will find objects that contain wiki and forum or that contain wiki and blog in any order.
Finding phrases
Use double quotes ( " " ) around a phrase to find terms in the exact order, exactly as typed. Example: "Alex Bell" will not find Bell Alex or Alex G. Bell.
Using wildcards
Add an asterisk ( * ) after a term to find objects that include the root word. For example, run* will find:
- objects that include the term run
- objects that include the term runner
- objects that include the term running
Reducing a term's value
Add a tilde ( ~ ) before a term to reduce its value indicate to the ranking of the results. Objects that contain the term will appear lower than other objects (unlike the minus sign which will completely exclude a term). Example: +wiki ~forum will rate an object with only wiki higher that an object with wiki and forum.
Changing relevance value
Add a less than ( < ) or greater than ( > ) sign before a term to change the term's contribution to the overall relevance value assigned to a object. Example: +wiki +(>forum < blog) will find objects that contain wiki and forum or wiki and blog in any order. wiki forum will be rated higher.
Problem with the displaySingleEmbeddedResultFromPortal() function
Dear WebMapViewer developers,
I have a problem with the WebMapViewer, namely that the search results are not dispalyed on the map but an error message is shown instead: "No features added to the map due to invalid GML".
I don't now what the problem is since previously it worked fine.
The service's stylesheet uses the following template for displaying the GML results on the WebMapViewer:
<xsl:template match="mass:viewEmbeddedResult">
<!-- template used to generate the jaavscript/html code needed to call the file viewer -->
<script LANGUAGE="JavaScript">
displaySingleEmbeddedResultFromPortal('<xsl:value-of select="mass:embeddedType"/>','<xsl:call-template name="ownEmbeddedResult"/>');
</script>
</xsl:template>
Where <xsl:call-template name="ownEmbeddedResult"/> generates the GML representation (see attached file)
As I mentioned it has been working until now.
I tested the attached GML representetion with the WebMapViewer Test Tool and I noticed that the Test Tool accepts our GML (see the attached image file).
The Test Tool can be found here: http://services-test.eoportal.org/portal/DownloadExternalUtil.jsp?pageName=mapTools
Is it possible that the implementation of displaySingleEmbeddedResultFromPortal() function changed somehow?
Or has the GML handling changed recently in SSE?