Hello @all,
Since other Sub-Xwikis are potentially blocked for security reasons, the search should be limited to the respective Xwikis / Sub-Xwiki.
Is this possible?
Many thank’s in advanced
TBC
Hello @all,
Since other Sub-Xwikis are potentially blocked for security reasons, the search should be limited to the respective Xwikis / Sub-Xwiki.
Is this possible?
Many thank’s in advanced
TBC
See https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr+Search+Application#HMiscellaneous . Check also the Main.SolrSearchConfig
page on your XWiki instance.
Many thank’s mflorea!
i have reed that information but don’t now what i need to do.
I have find the Section under Administration > Search > Solr like discripted but what i need to to now?
Where is the place to insert this String: #set ($wikisSearchableFromMainWiki = [“Main-xwiki”, “Sub-xwik”])
How can i restrict the search?
Many thanks for helping!
TBC
Did you check the Main.SolrSearchConfig
page I mentioned? You can set $wikisSearchableFromMainWiki
there, somewhere at the start, or you can simply look for wikisSearchableFromMainWiki
and change directly:
'wikisSearchableFromMainWiki': ['foo', 'bar'],
Hello mflorea,
i checked this one here but didn’t know if that one is what you meen:
{{velocity}}
#handleSolrSearchRequest
#if ($searchEngine == ‘solr’)
‘wikisSearchableFromMainWiki’: [‘TL-XWiki’],
#end
{{/velocity}}
{{velocity}}
#if ($searchEngine == ‘solr’)
#set ($wikisSearchableFromMainWiki = [“TL-XWiki”])
#end
{{/velocity}}
But still if i searching from TL-XWiki (Main-Xwiki) for something what is on subxwiki called RH-Xwiki i can find it.
What I’m doing wrong?
Many thank’s for helping
What page did you edit? Are you sure you edited the page I mentioned: Main.SolrSearchConfig
? It doesn’t seem so. Moreover, why do you need to check the search engine? I never mentioned that. Please read again my previous message and let me know what part of it is not clear.
Indeed I checked at Main.SolrSearch
not on Main.SolrSearchConfig
Now i have the right site
'wikisSearchableFromMainWiki': ['foo', 'bar'],
#if ($solrConfig)
#set ($discard = $__defaultSolrConfig.putAll($solrConfig))
#end
but without luck.
Pls. note I’m not a progammer, so it would be nice if you can help me.
I have read your post many times but don’t know what i need to do exactly.
IN our subwiki there are security-releaved information not to be viewed by others. Therefore, the search function must be restricted accordingly
GM @all,
is there anybody how can tell me what I need to do to get it work?
Many thanks in advanced
I didn’t said insert, I said change directly, that is replace:
'wikisSearchableFromMainWiki': $wikisSearchableFromMainWiki,
with
'wikisSearchableFromMainWiki': ['foo', 'bar'],
of course, using the wiki names you have instead of ‘foo’ and ‘bar’, or simply:
'wikisSearchableFromMainWiki': [$xcontext.mainWikiName],
if you want to search only on the main wiki.
many many thanks mflorea!!!
That one solve my problem!
Wish you a nice day!