On Mar 21, 2011, at 14:19 , karsten-s...@gmx.de wrote: > Hi, > > I am working on a migration from verity k2 to solr. > > At this point I have a parser for the Verity Query Language (our used subset) > which generates a syntax tree. > I transfer this in a couple of filters and one query. This fragmentation is > the reason, why I can not use my parser inside solr > (via QparserPlugin: http://wiki.apache.org/solr/SolrPlugins#QParserPlugin ).
Yeah, I think ideally Solr's query parser infrastructure should have a capability to create both a main query and additional filters separately. That was one thing that kind got me hung up on SOLR-839. Erik > So lets say that I already have a > org.apache.lucene.queryParser.core.nodes.QueryNode > > What is the proper way to send this to solr? > 1. serialize to XML and use xml-query-parser for deserialization > (but support in Solr is not stable: > https://issues.apache.org/jira/browse/SOLR-839 ) > 2. serialize and deserialize with XStream > 3. serialize and deserialize with NamedList (like SolrJ does this in the > other direction) > 4. other suggestions? > > If 1.: > Does anyone use xml-query-parser with heavy loads? > > If 2.: > Does anyone know why QueryNodeImpl.java lost its serialVersionUID from 3.x to > 4.x? > Will it not longer implement Serializable? > > If 3.: > Does anyone used NamedList to sent informations to solr? > Does anyone used NamedList to represent a QueryNode (or syntax tree)? > > Best regards > Karsten > > P.S. An small example why QueryParser is great: > http://sujitpal.blogspot.com/2011/03/using-lucenes-new-queryparser-framework.html