On Jun 30, 2009, at 12:03 PM, Philipp Bärfuss wrote:
There are two simple solutions:
- maintain each language tree separately (in that case you can
restrict the search to a certain hierarchy)
- index the content externally. We have successfully used google
site search for that:
-- http://www.google.com/enterprise/search/index.html
3:
- if you're using a single tree, customize the search query and add
something along the lines of "and language='de'" to it, where
'language' is the node property defining which language the page is in.
The main problem of 1:1 i18n is that all content is stored under the
same node and therefore the search is applied on all languages. This
can be seen as a feature but might be unwanted in other cases.
Philipp
On 30.06.2009, at 10:15, Markus Schwarz wrote:
Hi there,
I've got some trouble filtering my search query based on language.
I use i18n based on url-rewriting with /de/ and /en/ prefixes.
In my search results i get always both, german and english results.
how can I filter the results basen on language?
<form name="mgnlsearch" action="" method="post">
<input type="text" name="query" class="search" value="$
{param.query}"/>${blank}
<input type="image" class="searchButton" src="$
{pageContext.request.contextPath}/docroot/samples/imgs/search.gif"/>
</form>
Mit freundlichen Grüßen
i.A. Markus Schwarz
---------------------------------------------------------------------
Dipl. Des. Markus Schwarz, Systemdesign
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
Best regards,
Philipp Bärfuss
Magnolia International Ltd.
---------------------------------------
Meet us at the Magnolia Conference
http://www.magnolia-cms.com/conference
---------------------------------------
Magnolia® - Simple Open Source Content Management
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------