You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sarvothaman Madhavan <re...@gmail.com> on 2018/04/11 21:50:10 UTC

Nested streaming expression with differing "on" fields

Hello solr users,

Is it possible to perform streaming expression of the following type:


intersect(
	search (collection_3, fl=“field_1,field_2",sort="field_2 asc",qt="/export",q=*:* ),
	intersect( 
		search (collection_1, fl=“field_1,field_2",sort=“field_1 asc",qt="/export",q=*:*),
		search (collection_2, fl="field_1,field_2",sort=“field_1 asc",qt="/export",q=*:*),
		on=“field_1"
	), 
	on=“field_2"
)

Currently I get a “Invalid ReducerStream - substream comparator (sort) must be a superset of this stream's comparator.” 

Logically, collection_1 and collection_2 are linked via field_1 but the collection_3 links to everything else via field_2. The other point to note here is that this expression is build dynamically based on inputs to the program. 

Any workaround that you guys can point to will be useful. 

Thanks,
Sarvo