Hi,

I'm wondering if it's possible to use a default field on a filter query?

This is what I'm doing. (shortend example in solrJ)

            String qry = "{!qJoin}" + searchText;
            sq.setQuery(qry);
            sq.setParam("df", "pageTxt");
            sq.addFilterQuery("{!join fromIndex=pageCore from=pageId
to=fileId }description:"+filterText

qJoin is a custom query parser I made a while ago.
Problem exists when filterText has two words:

            filterText:Sorl rocks

This is because the filter query is parsed as:  description:Solr
pageTxt:rocks.
This causes an error since the pageTxt field does not exist in the pageCore.

I alread tried setting df=pageTxt and df=description between the right { }
but it doesn't seem to work?

How should this be achieved?




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solrj-How-to-set-different-default-field-on-a-join-filter-query-tp4043082.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to