Re: [xwiki-users] How to search revision comment of a document in xwiki?

2017-03-10 Thread gp wang
Thank you very much,Marius,but i noticed that in the link 
http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HDocumentFields also 
mentioned "version:  We need to index the document version (revision, e.g. 
'2.4') to be able to detect when the index is not up to date (not in sync with 
the database). This check is performed at XWiki startup for instance (see 
IndexerJob#addMissing).",what does it means? , can i make some changes of solr 
config file to achieve this?

Solr Schema (Design.SolrSchema) - 
XWiki
design.xwiki.org
Other URLs. The Solr schema configuration file used in XWiki. Description. 
Introduction; Test Cases; Indexing a Single Entity vs. Multiple Entities; A 
Mixed Approach





From: users  on behalf of Marius Dumitru Florea 

Sent: Wednesday, March 8, 2017 6:18 PM
To: XWiki Users
Subject: Re: [xwiki-users] How to search revision comment of a document in 
xwiki?

The name of the corresponding Solr index field is "comment" (
http://design.xwiki.org/xwiki/bin/view/Design/SolrSchema#HDocumentFields ).
Solr Schema (Design.SolrSchema) - 
XWiki
design.xwiki.org
Other URLs. The Solr schema configuration file used in XWiki. Description. 
Introduction; Test Cases; Indexing a Single Entity vs. Multiple Entities; A 
Mixed Approach


Note that only the last version of a document is being indexed. So each
time you modify and save a document the corresponding row on the Solr index
is updated. Thus you will be able to search only for the comment of the
last revision.

Hope this helps,
Marius

On Tue, Mar 7, 2017 at 10:33 PM, gp wang  wrote:

> Hi All,
>
>
> How to search revision comment of a document in xwiki? Does solr index the
> version info of a doc?
>
> I made a change of this page:
> http://localhost:8080/xwiki/bin/edit/Main/SolrSearchConfig
>
> {{velocity output="false"}}
> #set ($__defaultSolrConfig = {
>   'queryFields': {
> 'DOCUMENT': 'title^10.0 name^10.0 version^10.0
>  doccontent^2.0
> ...
>
>
> Thanks.
>
> wgp
>
>


Re: [xwiki-users] Self Introduction/GSoc17

2017-03-10 Thread Thomas Mortagne
Hi Sarthak,

Glad to see someone interrested in this project !

On Fri, Mar 10, 2017 at 4:35 PM, Sarthak Gupta
 wrote:
> Hi,
> I am Sarthak Gupta, a first year undergraduate from Birla Institute of
> Technology, Ranchi, India. I am looking forward to participate in GSoc17
> with the organisation. I am good at several languages like HTML, CSS,
> JavaScript and C. I have a basic knowledge of Java.
> While going through the ideas page, I found that the project "Translation
> in context"   http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/#
> HTranslationincontext
>
> would be interesting for me to work on.
> This is what I understood:
> So, the X-wiki provides a 'translation macro' which is of course used to
> translate content. So, as far as I think, this translation macro will be
> used in a more better way to translate the content on the page. As given we
> will be able to select and translate any given content on the webpage.
>
> Using HTML5 renderer, I will be able to find the translation macro(how to
> do that is my pain I guess :P). Then as given in examples (like
> pantoon.mozilla.org), I should be able to incorporate it into the webpage.
> Please correct  me if something's wrong.
>

> Also some guidance on the line "The idea is also to make easy to contribute
> to http://l10n.xwiki.org from your local wiki by sending your corrections
> to it." is required.

http://l10n.xwiki.org is where we actually store reference
translations and where translator can contribute right now. The idea
would be to translate directly in the wiki and then (automatically or
not) send the translations from your XWiki instance to l10n.xwiki.org
(if you have an account). You could see this as a commit/push.

>
> Sarthak Gupta



-- 
Thomas Mortagne


[xwiki-users] Solr index not include rendered contents in languages other than English

2017-03-10 Thread webmaster
Hi,


I've created an issue on jira as XWIKI-14091. However, I would like to discuss 
about it here since I'm struggling whether I should use the default English 
language to maintain my wiki (the real content is not English) or wait for the 
bug fix.


Following is the step to reproduce the issue
1. In Administration: Localization section, change the MULTILINGUAL to TRUE , 
include English and other languages as SUPPORTED LANGUAGES and set a language 
other than English as DEFAULT LANGUAGE.
2. With default language not English, create a new page like "Test", add some 
contents in this page like "I'm using XWiki.".
3. Wait for a minute (in case that the new page is not yet indexed) and search 
for "XWiki".
4. The new page is not included in the search result as Rendered Document 
Content.


However, if I create a new page in English and the content is included in the 
search result. So I wonder if it is because the content in other languages is 
not indexed by Solr.

[xwiki-users] Self Introduction/GSoc17

2017-03-10 Thread Sarthak Gupta
Hi,
I am Sarthak Gupta, a first year undergraduate from Birla Institute of
Technology, Ranchi, India. I am looking forward to participate in GSoc17
with the organisation. I am good at several languages like HTML, CSS,
JavaScript and C. I have a basic knowledge of Java.
While going through the ideas page, I found that the project "Translation
in context"   http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/#
HTranslationincontext
​
would be interesting for me to work on.
This is what I understood:
So, the X-wiki provides a 'translation macro'​ which is of course used to
translate content. So, as far as I think, this translation macro will be
used in a more better way to translate the content on the page. As given we
will be able to select and translate any given content on the webpage.

Using HTML5 renderer, I will be able to find the translation macro(how to
do that is my pain I guess :P). Then as given in examples (like
pantoon.mozilla.org), I should be able to incorporate it into the webpage.
Please correct  me if something's wrong.

Also some guidance on the line "The idea is also to make easy to contribute
to http://l10n.xwiki.org from your local wiki by sending your corrections
to it." is required.

Sarthak Gupta


Re: [xwiki-users] Wiki farm, separate wikis?

2017-03-10 Thread Keith H

Ok,

so I finally worked it out, local users don’t get links to the top 
level wiki in the wiki farm!


Keith

On 10 Mar 2017, at 0:40, Keith H wrote:


Hello All,

Is there an official way to customise the breadcrumb control?

I managed to sneak this css into the skin colour customise area, in 
the advanced section, the house icon and first level has gone.



/* add here your custom rules */

ol#hierarchy > li.wiki {
display:none;
}

li.space:before {
   content:"" !important;
}

Now I want the house back but going to the current wiki home page, 
rather than the parent wiki home page.


Keith



On 8 Mar 2017, at 20:44, Keith H wrote:


Hello,

I have configured xwiki as a wikifarm serving several domains, and 
its great, but there is one particular anomaly.


Most of my initial users will be using the top level wiki

A   - B
- C
- D

Each of the wiki’s is not equal. The user using wiki C under one 
domain name, sees a breadcrumbs trail, and a little house icon that 
takes him to wiki A in a completely different domain, rather than to 
the Homepage of the domain she started in.


Is there a simple fix?

thanks in advance

Keith


Re: [xwiki-users] Problems wt Update 7.4.5 -> 8.4.4

2017-03-10 Thread Thomas Mortagne
By the way there is something about that in the upgrade quide, that's
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT#HXWikiwon27tstartandIgetSolrrelatederror28s29inthelog.

On Fri, Mar 10, 2017 at 2:28 PM, Thomas Mortagne
 wrote:
> On Fri, Mar 10, 2017 at 12:03 PM, Wolfgang Theissen
>  wrote:
>> Hello,
>>
>> I'm trying to upgrade our XWIKI Installation from 7.4.5 to 8.4.4 (running on
>> an Tomcat7/Ubuntu 16.0.4 ). I folllowed the upgrade guide which basically
>> says nothing except apt-get update and apt-get upgrade. The database should
>> be upgraded by the distribution wizard. The apt-get commands are executed
>> without errors.
>> But this leaves a broken system.It failes to initialize the Solr embedded
>> server:
>> "Could not load conf for core xwiki: Error loading solr config from
>> /var/lib/xwiki/data/solr/xwiki/conf/solrconfig.xml"
>>
>> But as far as I understood this file in untouched by the upgrade so it
>> should be the same. So I assume the error is elseware.  I double checked all
>> other configuration files (xwiki.cfg, xwiki.properties, webx.ml,
>> catalina.properties) they should be okay.
>
> In this specific use case the issue is that the file is untouched. You
> should delete /var/lib/xwiki/data/solr/ and restart so that solr index
> is automatically recreated.
>
> Unfortunately there is no automatic upgrade of Solr index right now
> when there is a change in the schema.
>
>>
>> Any help is welcome, Wolfgang
>>
>>
>
>
>
> --
> Thomas Mortagne



-- 
Thomas Mortagne


Re: [xwiki-users] Problems wt Update 7.4.5 -> 8.4.4

2017-03-10 Thread Thomas Mortagne
On Fri, Mar 10, 2017 at 12:03 PM, Wolfgang Theissen
 wrote:
> Hello,
>
> I'm trying to upgrade our XWIKI Installation from 7.4.5 to 8.4.4 (running on
> an Tomcat7/Ubuntu 16.0.4 ). I folllowed the upgrade guide which basically
> says nothing except apt-get update and apt-get upgrade. The database should
> be upgraded by the distribution wizard. The apt-get commands are executed
> without errors.
> But this leaves a broken system.It failes to initialize the Solr embedded
> server:
> "Could not load conf for core xwiki: Error loading solr config from
> /var/lib/xwiki/data/solr/xwiki/conf/solrconfig.xml"
>
> But as far as I understood this file in untouched by the upgrade so it
> should be the same. So I assume the error is elseware.  I double checked all
> other configuration files (xwiki.cfg, xwiki.properties, webx.ml,
> catalina.properties) they should be okay.

In this specific use case the issue is that the file is untouched. You
should delete /var/lib/xwiki/data/solr/ and restart so that solr index
is automatically recreated.

Unfortunately there is no automatic upgrade of Solr index right now
when there is a change in the schema.

>
> Any help is welcome, Wolfgang
>
>



-- 
Thomas Mortagne


Re: [xwiki-users] how to import wiki to 9.1.2 exporrted from 9.1.1

2017-03-10 Thread Marius Dumitru Florea
Try to clear your browser's cache and reload the page.

On Fri, Mar 10, 2017 at 12:05 PM, BRUMM Steffen <
steffen.br...@frankstahl.com> wrote:

> Hi,
>
> i have the following problem. I wrote Wikipages (under Home) on my
> win10-machine  and exported them via the admin menu. Then i imported them
> in out new 9.1.2 instance (same machine). I was able to open the pages but
> then i see only the blue spinning wheel. I always used the default Values
> fort he export/import. What was wong?
>
> Br
> Steffen
>


Re: [xwiki-users] New page name from app fields

2017-03-10 Thread Marius Dumitru Florea
On Thu, Mar 9, 2017 at 2:18 PM, D R  wrote:

> Hi,
>
> After being sick and busy with other things I checked again and found out
> that the xredirect does not work so the NameManager is not executed.
>
> Even the following in the application sheet does not do any redirect when
> pressing Save and View button of an application document:
>
> ```
> 
>   
> 
>
> ```
>

The value of the xredirect field must be an URL, see my first reply. And
you need XWiki 8.4+

Hope this helps,
Marius


>
> Could you please help me how proceed further?
>
> Thanks, Dennis
>
> 2017-03-01 15:51 GMT+01:00 D R :
>
> > Hi Marius,
> >
> > thanks, I'm one step further now, at least the NameManager now does
> > renaming in general (it renamed itself until I added an #if clause to not
> > do so).
> >
> > I wanted to implement it step by step so I didn't add the redirect yet.
> >
> > But the sheet is not executed when editing application entries.
> >
> > Meanwhile I have the following.
> >
> > Test App.Code.Test AppSheet:
> >
> > ```
> > [...]
> > #set( $nameManRef = $services.model.createDocumentReference('', ['Test
> > App', 'Code'], 'Test App NameManager') )
> > #set( $nameMan = $xwiki.getDocument($nameManRef) )
> >
> > 
> >   
> > 
> >
> > {{/html}}
> > {{/velocity}}
> >
> > ```
> >
> > Test App.Code.Test App NameManager:
> >
> > ```
> > {{velocity}}
> > #if ( $doc.name != 'Test App NameManager' )
> >   #set ($renameRequest = $services.refactoring.createRenameRequest($doc.
> documentReference,
> > 'Now RENAMED'))
> >   #set ($discard = $renameRequest.setAutoRedirect(false))
> >   $services.refactoring.rename($renameRequest)).join()
> > #end
> > {{/velocity}}
> >
> > ```
> >
> > Thanks again,
> > Dennis
> >
> > 2017-03-01 10:30 GMT+01:00 Marius Dumitru Florea <
> > mariusdumitru.flo...@xwiki.com>:
> >
> >> On Tue, Feb 28, 2017 at 3:03 PM, D R  wrote:
> >>
> >> > Hi Marius,
> >> >
> >> > the refactoring approach sounds great but there seems to be something
> I
> >> do
> >> > wrong because the renaming doesn't work. Maybe I misunderstood the
> term
> >> > "current document" but I'm not sure.
> >> >
> >> > I created "Test App.Code.Test App NameManager" with the following
> >> content:
> >> >
> >> > ```
> >> > {{velocity}}
> >> > #set ($renameRequest =
> >> >
> >>
> >>
> >> > $services.refactoring.createRenameRequest($doc.fullName, 'Now
> >> RENAMED'))
> >> >
> >>
> >> As per
> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Refacto
> >> ring+Module#HScriptService
> >> the first parameter passed to createRenameRequest must be an
> >> EntityReference. In your case you can pass:
> >>
> >> * either the reference of the current document, i.e.
> >> $doc.documentReference
> >> , if the document is terminal (its name != 'WebHome')
> >> * or the reference of the current space, i.e.
> >> $doc.documentReference.parent
> >> , if the document is not terminal (its name is 'WebHome')
> >>
> >>
> >> > #set ($discard = $renameRequest.setAutoRedirect(false))
> >> > $services.refactoring.rename($renameRequest)).join()
> >> > {{/velocity}}
> >> >
> >> > ```
> >> >
> >> > Then I put your DIV at the end of my app sheet:
> >> >
> >> > ```
> >> > {{velocity}}
> >> > {{html wiki="true"}}
> >> > #set ($discard = $doc.use('Test App.Code.Test AppClass'))
> >> > (% class="xform" %)
> >> > (((
> >> >[FORM CONTENT]
> >> > )))
> >> >
> >> > 
> >> >   
> >> > 
> >> >
> >> > {{/html}}
> >> > {{/velocity}}
> >> >
> >> > ```
> >> >
> >> > Then I opened up one of the application entries, edited it and hit
> "Save
> >> > and view" but the name didn't change.
> >> >
> >>
> >> I don't see any redirect in "Test App NameManager" so it's normal you
> stay
> >> on the same page, but do you have the sheet parameter in the query
> string?
> >> i.e. is the "Test App NameManager" sheet executed?
> >>
> >>
> >> >
> >> > Could you please tell me what I did wrong.
> >> >
> >> > Thanks in advance,
> >> > Dennis
> >> >
> >> > 2017-02-28 11:38 GMT+01:00 Marius Dumitru Florea <
> >> > mariusdumitru.flo...@xwiki.com>:
> >> >
> >> > > Hi Dennis,
> >> > >
> >> > > A relatively simple solution is the following:
> >> > >
> >> > > (1) modify the application sheet to include the following HTML at
> the
> >> > end:
> >> > >
> >> > > 
> >> > >   
> >> > > 
> >> > >
> >> > > The result is that whenever you create a new application entry or
> when
> >> > you
> >> > > edit an existing application entry, after you click "Save and view"
> >> you
> >> > > will be taken to the view mode with ?sheet=Path.To.NameManager in
> the
> >> URL
> >> > > query string, which means the Path.To.NameManager sheet will be
> >> applied
> >> > to
> >> > > the saved document.
> >> > >
> >> > > (2) Create the Path.To.NameManager page that determines the right
> name
> >> > for
> >> > > the current document (based on its fields) and renames the current
> >> > document
> >> > > if needed ( using the refactoring API
> >> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Refacto
> >> ring+Module
> >> > ),
> >> 

[xwiki-users] Problems wt Update 7.4.5 -> 8.4.4

2017-03-10 Thread Wolfgang Theissen

Hello,

I'm trying to upgrade our XWIKI Installation from 7.4.5 to 8.4.4 
(running on an Tomcat7/Ubuntu 16.0.4 ). I folllowed the upgrade guide 
which basically says nothing except apt-get update and apt-get upgrade. 
The database should be upgraded by the distribution wizard. The apt-get 
commands are executed without errors.
But this leaves a broken system.It failes to initialize the Solr 
embedded server:
"Could not load conf for core xwiki: Error loading solr config from 
/var/lib/xwiki/data/solr/xwiki/conf/solrconfig.xml"


But as far as I understood this file in untouched by the upgrade so it 
should be the same. So I assume the error is elseware.  I double checked 
all other configuration files (xwiki.cfg, xwiki.properties, webx.ml, 
catalina.properties) they should be okay.


Any help is welcome, Wolfgang




Re: [xwiki-users] Bookmarks on XWiki Platform - Spaces

2017-03-10 Thread Hamster
Thomas Mortagne wrote
> Not much to do with XWiki Enterprise.

I know...that's why I havn't mentioned XWiki Enterprise ;-)

Thanks for updating the links!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Bookmarks-on-XWiki-Platform-Spaces-tp7603053p7603056.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] Bookmarks on XWiki Platform - Spaces

2017-03-10 Thread Thomas Mortagne
Not much to do with XWiki Enterprise.

All snippets that used to be on extensions.xwiki.org are now on a
dedicated snippets.xwiki.org. Unfortunately the move was not done
properly...

I fixed two links but no idea where "Delete Space" snippet went.

On Fri, Mar 10, 2017 at 11:02 AM, Hamster  wrote:
> With the XWiki Extensions being redesigned, several links to the "old"
> Extension pages are now broken.
>
> Could someone please fix the links on:
>
> http://platform.xwiki.org/xwiki/bin/view/Features/Spaces#HSnippetsforspaces
>
> I am in need to rename/duplicate a space, so I could use those examples :-)
>
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Bookmarks-on-XWiki-Platform-Spaces-tp7603053.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.



-- 
Thomas Mortagne


[xwiki-users] how to import wiki to 9.1.2 exporrted from 9.1.1

2017-03-10 Thread BRUMM Steffen
Hi,

i have the following problem. I wrote Wikipages (under Home) on my 
win10-machine  and exported them via the admin menu. Then i imported them in 
out new 9.1.2 instance (same machine). I was able to open the pages but then i 
see only the blue spinning wheel. I always used the default Values fort he 
export/import. What was wong?

Br
Steffen


[xwiki-users] Bookmarks on XWiki Platform - Spaces

2017-03-10 Thread Hamster
With the XWiki Extensions being redesigned, several links to the "old"
Extension pages are now broken.

Could someone please fix the links on:

http://platform.xwiki.org/xwiki/bin/view/Features/Spaces#HSnippetsforspaces

I am in need to rename/duplicate a space, so I could use those examples :-)




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Bookmarks-on-XWiki-Platform-Spaces-tp7603053.html
Sent from the XWiki- Users mailing list archive at Nabble.com.