On Thu, Jan 29, 2015 at 11:44 AM, Mike Hoolehan <[email protected]> wrote:
> I would like to customize the solr schema.xml and solrconfig.xml used
> for our instance of xwiki (enterprise 6.1) to provide some additional
> fields and to customize (and enforce) search behaviors.
>
> My first attempt at modifying xwiki's data/solr/xwiki/conf/*.xml seemed
> successful at first, but after xwiki restarts the solr index appeared
> flawed in some way (all search gave zero results) even after full index
> rebuilds.

These changes are normally taken into account after a server restart
so I don't see how your attempt could have been successful at first.
If you modify the schema you probably need to recreate the index so
I'd try to (backup and) delete the data/solr/xwiki/data folder (which
seems to contains the actual Solr index) and then restart the server.
The Solr index is automatically synchronized with the database at
server restart, in a background thread. If you don't get any results
then:

* either the indexing/synchronization is in progress, and you can
check the status from the Administration
* or there is some problem which should appear in the server logs

Hope this helps,
Marius

>
> I see clues in xwiki.properties that custom solr config dirs and even
> external solr instances are supported, but have not found any specific
> documentation. I'm not certain the above implies that solr configuration
> customization is supported.  Is it possible and, if so, is there any
> general guidance on utilizing custom schemas or external solrs?
>
> Thanks,
> Mike
> _______________________________________________
> 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