Hi,

 

Thanks for your help and answers. I believe I have isolated the issue, and yes, 
it was 'schema/write'-related.

 

Basically, the issue was this:

All indexing is performed via solrj objects (to an EmbeddedSolrServer 
instance), and this was ported over from 'raw' Lucene java indexing code. When 
I moved over to SolrJ, I hadn't realized that the schema.xml file will then 
affect all writes for the given type. Once I sorted out my schema properly, and 
reindexed - queries started behaving as expected.

 

Thank you very much for your excellent insight - I'm quite new to Solr, so it's 
really great to have an expert show me the err of my ways. I had only recently 
discovered the power of debugQuery=true - awesomely good!

 

Many thanks again,

Peter

 

 
> Date: Tue, 8 Dec 2009 09:35:31 -0800
> From: hossman_luc...@fucit.org
> To: solr-user@lucene.apache.org
> Subject: RE: Facet query with special characters
> 
> 
> : Note that I am (supposed to be) indexing/searching without analysis 
> : tokenization (if that's the correct term) - i.e. field values like 
> : 'pds-comp.domain' shouldn't be (and I believe aren't) broken up as in 
> : 'pds', 'comp' 'domain' etc. (e.g. using the 'text_ws' fieldtype).
> ...
> : What would be your opinion on the best way to index/analyze/not-analyze 
> such fields?
> 
> a whitespace tokenizer is probeably the best bet, but in order to be 
> certain what's going on, you would need to look at a few things (and if 
> you wanted help from other people, you would need to post those things) 
> that i mentioned before....
> 
> : > check your analysis configuration for this fieldtype, in particular look 
> : > at what debugQuery produces for your parsed query, and look at what 
> : > analysis.jsp says it will do at query time with the input string 
> : > "pds-comp.domain" ... because it sounds like you have a disconnect 
> between 
> : > how the text is indexed and how it is searched. adding a * to your 
> 
> ...so what does your schema look like, what is the outputfrom debugQuery, 
> what is the output from analysis.jsp, etc...
> 
> -Hoss
> 
                                          
_________________________________________________________________
Have more than one Hotmail account? Link them together to easily access both
 http://clk.atdmt.com/UKM/go/186394591/direct/01/

Reply via email to