Add Wildcards to Main.Search

hi folks,

I know it is possibe to add wildcards in the searchsuggest-query automatically.

Is it possible to change the query on Main.Search.WebHome, too?

Aim is, that a user types in his search word, e.g. test and xwiki searches for *test*.

Regards,
Johannes

Yeah this is asked often (google-like search). I think there’s a jira for it but couldn’t find it when I searched quickly.

I think you can edit the solr search configuration in Main.Search.

@mflorea do you recall the jira issue or discuss about this?

PS: I agree we need this feature. This is what everyone expects to have by default IMO.

1 Like

I tried, but could not get this to work :confused:

Adding Filter-Queries ist far easier :slight_smile:

We use the current way the search works to find “tags” in the documents via Macro code. If this is changed to “*whatever*” by default, this will probably no longer work, as searching will probably return many other non related words that contain the 4 letter code …If you intend to change the default, it would be great if you could add an option (also exposed as query parameter) to specify the behavior (wildcard or not). Thank you very much.

Sure, if you use the xwiki search api, you should be able to configure it as you wish.

For the default search UI though, we probably need it to be google-like by default.

1 Like

For now we simply generate a link in the form of:
https://server/xwiki/bin/view/Main/Search?f_locale=en&f_locale=&r=1&f_type=DOCUMENT&text=ABCD
E.g. it would be nice to have something like &awc=0, like
https://server/xwiki/bin/view/Main/Search?f_locale=en&f_locale=&r=1&f_type=DOCUMENT&awc=0&text=ABCD

awc = auto wild card :wink:
Thank you

Definitely :slight_smile:
+1