Hi
It could be difference between the tokenizer classes.

In Solr you specify different analyzers/tokenizers in the schema.xml for
queries and indexes.

For example:

<fieldType name="FullTextIndex" class="solr.TextField" indexed="true" 
stored="false" multiValued="true" sortMissingLast="true" omitNorms="false">
<analyzer type="index">
<tokenizer class="solr.LetterTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.LetterTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>

In Fedora G Search in 
/gsear/WEB-INF/classes/config/index/index_name/index.properties file
you can specify an anylazer:

For example:

fgsindex.analyzer                               = 
org.apache.lucene.analysis.WhitespaceAnalyzer

There could be a mismatch between the Solr and GSearch.

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&indexName=&query=dc.identifier:
>  
> "ala:1055398c85a4da7766fbef9c0f1a62f0"
>
> and after I click "search" again:
>
> http://localhost:8080/fedoragsearch/rest?operation=gfindObjects&query=dc.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%3A1055398c85a4da7766fbef9c0f1a62f0%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

Reply via email to