Hi, Michael!
The same problem I had. It could be fixed as following:
Edit Xwiki.SearchSuggest directly in Object Editor and add one more string to each search
configuration where you need prefix search:
q=__INPUT__*
E.g. for Blog it would look like this
q=__INPUT__*
fq=type:DOCUMENT
fq=class:Blog.BlogPostClass
qf=object.Blog.BlogPostClass
Or you can do the same via UI from Search Suggest section in XWikiPreferences:
To make it running, I had to stop and start SolrSuggest (or restart XWiki). Hope it
helps.
Marius, looks like, we have one more vote for keeping old behavior in default Solr Suggest
settings.
Fri, 2 May 2014 10:05:31 +0200 от Michael Bußler <michael.bussler(a)googlemail.com>om>:
Hi there,
I've just moved my wiki to a different Server and upgraded there to XWiki
Enterprise 5.4.4. I've also switched to solr search engine. It's really
awesome work you did there, and I definitively want to use Solr search
because to the much better results page. :)
But regrettably, I've got an issue with the search suggestion feature to
report: Before upgrading, I used Lucene, which gives me this really nice
feature of searching and making suggestions while I'm typing into the
search-box on the upper right. This doesn't happen anymore with solr
search, as suggestions are only made, if there is a 100% match with the
query somewhere in the doc or attachment.
It may be because of how the suggestion feature creates queries: With
lucene, the input is always extended by an asterik, like __INPUT__*. So,
I've tried to add an asterik to my incomplete search query for Solr-search,
and it gives me exactly, what I want, except that I have to insert the '*'
always by hand at the end. Then, I've tried to add the asterik somewhere in
the Solr search suggestion query in XWikiPreferences, but didn't manage to
get it right.
Do you have an idea, or maybe know, how I can get back the old behaviour
with lucene search?
You can also visit the wikis and try for yourself:
Old page with Lucene-Search:
http://www2.wikiderm.de
New page with Solr-Search:
http://www.wikiderm.de
For example, try to search for "atop" and see whats happening..
Best regards,
Michael
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users