summaryrefslogtreecommitdiff
path: root/htroot/suggest.xml
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-11-03 09:20:36 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-11-03 09:20:36 +0000
commit3e303db1fa63ef8668933dbd1da2d6e49927c546 (patch)
tree86d2b005c3ab0609b3e0bdee8ae1d690ac4a32ff /htroot/suggest.xml
parentf5324b27f2826e3c3de9647f9c3c9f28e012ca8f (diff)
added search suggestions in XML format. This also supports CORS
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7293 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/suggest.xml')
-rw-r--r--htroot/suggest.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/htroot/suggest.xml b/htroot/suggest.xml
new file mode 100644
index 000000000..2ac01fbd7
--- /dev/null
+++ b/htroot/suggest.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<SearchSuggestion xmlns ="http://schemas.microsoft.com/Search/2008/suggestions">
+<Query>#[query]#</Query>
+<Section>
+#{suggestions}#
+ <Item>
+ <Text>#[text]#</Text>
+ </Item>
+#{/suggestions}#
+</Section>
+</SearchSuggestion>