This issue http://jira.xwiki.org/browse/XWIKI-10306 is opened to
improve the process of enabling prefix matching.

On Thu, Nov 27, 2014 at 11:24 AM, Marius Dumitru Florea
<[email protected]> wrote:
> On Thu, Nov 27, 2014 at 10:21 AM, D R <[email protected]> wrote:
>> Sorry, you are right, but I see a "strange" behavior for the search results
>> popup which is shown while typing.
>>
>> It seems it has to do with the chosen search word or something.
>>
>> I created a subwiki where I have a space named "Testspace" and in there I
>> have a doc "Testpage".
>>
>> Typing "test" in the upper right search box on the main wiki shows "no
>> results found" (or similar, I'm on German language). Typing "testpage"
>> shows the page as a result on the search popup.
>> It's the same when I'm in the test wiki, "test" won't show results,
>> "testpage" shows results.
>>
>
>> Is there any minimum size of the search word the users have to be aware of?
>
> There is, 3, but that's not the issue here. As long as you get the "No
> result!" message it means the search was performed but there were no
> results. And the reason there were no results in your case is because
> the live search doesn't perform prefix matching by default (for
> performance reasons). You can enable prefix matching:
>
> * either globally: replace '__INPUT__' with '__INPUT__*' in
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-ui/src/main/resources/XWiki/SuggestSolrMacros.xml#L91
> * or per search suggest source: in the wiki administration, Search
> Suggest section, query property, add "q=__INPUT__*" on a new line,
> without the quotes.
>
> Hope this helps,
> Marius
>
>>
>> Sorry again if there is a misunderstanding from my side and thanks for
>> feedback in advance.
>>
>>
>> 2014-11-26 16:30 GMT+01:00 Thomas Mortagne <[email protected]>:
>>
>>> Well that's exactly what the default search is doing by default. You
>>> then get on the right a filter where you can select which wiki's
>>> result you want to keep.
>>>
>>> On Wed, Nov 26, 2014 at 4:12 PM, D R <[email protected]> wrote:
>>> > Hi,
>>> >
>>> > is there a way to make the search function on the main wiki also search
>>> > inside subwikis?
>>> > Couldn't find something in the documentation.
>>> >
>>> > Thanks in advance,
>>> > Dennis
>>> > _______________________________________________
>>> > users mailing list
>>> > [email protected]
>>> > http://lists.xwiki.org/mailman/listinfo/users
>>>
>>>
>>>
>>> --
>>> Thomas Mortagne
>>> _______________________________________________
>>> users mailing list
>>> [email protected]
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to