Class: ParsingNesting::Tree::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/parsing_nesting/tree.rb

Direct Known Subclasses

ExcludedClause, List, MandatoryClause, Phrase, Term

Instance Method Summary collapse

Instance Method Details

#to_query(solr_params) ⇒ Object

this default to_query works well for anything that is embeddable in a standard way. non-embeddable nodes will have to override and do it different.



63
64
65
# File 'lib/parsing_nesting/tree.rb', line 63

def to_query(solr_params)
  build_nested_query([self], solr_params)
end