So it was me defining it in schema.xml rather than solrconfig.xml.

17:17 < erikhatcher> where are you defining the qparser plugin?
17:18 < erikhatcher> it's very odd... if it isn't picking them up but you reference them, it would certainly give an error 17:18 < karlwettin> as a first level child to schema element in schema.xml
17:19 < erikhatcher> qparser plugins go in solrconfig, not schema
17:19 < karlwettin> aha
17:19 < karlwettin> :)
17:19 < erikhatcher> :)


27 jan 2009 kl. 08.25 skrev Erik Hatcher:

Karl - where did you put your a.b.QParserPlugin? You should put it in <solr-home>/lib within a JAR file. I'm surprised you aren't seeing an error though.

        Erik

On Jan 27, 2009, at 1:07 AM, Karl Wettin wrote:

Hi forum,

I'm trying to get QParserPlugin to work, I've got
<queryParser name="myqueryparser" class="a.b.QParserPlugin"/>

but still get Unknown query type 'myqueryparser' when I
/solr/select/?defType=myqueryparser&q=foo

There is no warning about myqueryparser from Solr at startup.

I do however manage to get this working:
<fieldType name="foo" stored="true" indexed="true" class="a.b.C">
  <analyzer type="index" class="a.b.D"/>
  <analyzer type="query" class="a.b.E"/>
</fieldType>

So it shouldn't be my Solr environment or a classpath problem? That's the level of me setting up Solr, I'm left with no clues to why it doesn't register.


gratefully,

  karl


Reply via email to