Hi Carsten,

In configDemoOnSolr/index/demoOnSolr/demoFoxmlToSolr.xslt the transformation 
from a foxml record to a solr index document is specified, among other things 
you can find <field index="TOKENIZED" ... > which will determine, whether solr 
will index the fields with the analyser given in the solr config file 
schema.xml for tokenization, respectively for non-tokenization.

So when you tailor demoFoxmlToSolr.xslt and schema.xml for your own application 
purpose you have to know what solr does, so to know "> the exact mapping", you 
have to study the solr documentation and/or ask the solr community in case of 
doubts.

Cheers,
Gert

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Tuesday, June 16, 2009 1:44 AM
> To: Gert Schmeltz Pedersen; [email protected]
> Cc: [email protected]
> Subject: RE: [Fedora-commons-users] gfindObjects can't find an object
> which is in the index
> 
> Hi Gert,
> 
> Thanks for that (and thanks to Remi for the previous posts).
> 
> How can I tell if a field is tokenized on indexing?
> 
> I assume this is the case only if the field is of a type, which in its
> definition, in the <analyser/> section has an entry for <tokenizer/>?
> Is that enough or do I have to take into account the value of the
> tokenizer class, e.g. 'yes' for WhitespaceTokenizerFactory, but 'no'
> for KeywordTokenizerFactory? If I have to take this into account what
> is the exact mapping?
> 
> Cheers,
> Carsten
> 
> -----Original Message-----
> From: Gert Schmeltz Pedersen [mailto:[email protected]]
> Sent: Friday, 12 June 2009 19:51
> To: Remi Malessa; Friedrich, Carsten (ICT Centre, Acton)
> Cc: [email protected]
> Subject: RE: [Fedora-commons-users] gfindObjects can't find an object
> which is in the index
> 
> The point is that if dc.identifier is not tokenized on indexing, then
> you have to specify that to gsearch in index.properties as
> 
> fgsindex.untokenizedFields = dc.identifier
> 
> Gert
> 
> > -----Original Message-----
> > From: Remi Malessa [mailto:[email protected]]
> > Sent: Friday, June 12, 2009 11:27 AM
> > Cc: [email protected]
> > Subject: Re: [Fedora-commons-users] gfindObjects can't find an object
> > which is in the index
> >
> > Hi again.
> >
> > Looking for "ala:1055398c85a4da7766fbef9c0f1a62f0", I would make sure
> > it
> > is not tokenized on indexing.
> > Or you can try to look for "1055398c85a4da7766fbef9c0f1a62f0" only,
> in
> > the Fedora G Search.
> > I think the FGS query anylyzer could tokenize the identifier in two:
> > 'ala' and '1055398c85a4da7766fbef9c0f1a62f0'.
> >
> > Remi
> >
> >
> >
> >
> > On 12/06/09 04:49, [email protected] wrote:
> > > I ingested some objects into a fedora 3.2 configured to work with
> > Solr 1.3 and gsearch 2.2. If I use the gsearch REST frontend to
> browse
> > the index, expected results come up. When I click on some of those
> > results in the browser however I get "No hits!'. Searching for the
> same
> > query in the Solr front-end finds the relevant objects. Any ideas?
> > >
> > > Some more details:
> > >
> > > The query criteria is:
> > dc.identifier:"ala:1055398c85a4da7766fbef9c0f1a62f0"
> > >
> > > The gfindObjects URL generated from "browseIndex" which fails is:
> > >
> > >
> >
> http://localhost:8080/fedoragsearch/rest?operation=gfindObjects&indexNa
> > me=&query=dc.identifier: "ala:1055398c85a4da7766fbef9c0f1a62f0"
> > >
> > > and after I click "search" again:
> > >
> > >
> >
> http://localhost:8080/fedoragsearch/rest?operation=gfindObjects&query=d
> >
> c.identifier%3A"ala%3A1055398c85a4da7766fbef9c0f1a62f0"&hitPageSize=10
> > >
> > > I noticed that " and : in the first URL are not correctly encoded,
> > but this does not seem to be the problem as I also get "No Hits!"
> when
> > using the right encoding.
> > >
> > > The Solr query URL which finds the object is:
> > >
> > >
> >
> http://localhost:8080/solr/select/?q=dc.identifier%3A%22ala%3A1055398c8
> > 5a4da7766fbef9c0f1a62f0%22&version=2.2&start=0&rows=10&indent=on
> > >
> > > Thanks,
> > > Carsten
> > >
> > >
> > > -------------------------------------------------------------------
> --
> > ---------
> > > Crystal Reports - New Free Runtime and 30 Day Trial
> > > Check out the new simplified licensing option that enables
> unlimited
> > > royalty-free distribution of the report engine for externally
> facing
> > > server and web deployment.
> > > http://p.sf.net/sfu/businessobjects
> > > _______________________________________________
> > > Fedora-commons-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
> > >
> >
> >
> > ---------------------------------------------------------------------
> --
> > -------
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables unlimited
> > royalty-free distribution of the report engine for externally facing
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > _______________________________________________
> > Fedora-commons-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to