 window.CwbMultiwordInput = React.createClass
   propTypes:
     showRemoveRow: React.PropTypes.bool.isRequired
+    hasHeadwordSearch: React.PropTypes.bool.isRequired
     searchQuery: React.PropTypes.object.isRequired
     corpus: React.PropTypes.object.isRequired
     handleQueryChanged: React.PropTypes.func.isRequired

            )
          }, this)}
          </div>
        </div>
      </form>
    </div>`

    @props.handleQueryChanged
      lang: @props.searchQuery.lang
      query: @constructCQPQuery(queryTerms)
      headwordSearch: @props.searchQuery.headwordSearch


  handleHeadwordSearchChanged: (e) ->
    @props.handleQueryChanged
      lang: @props.searchQuery.lang
      query: @constructCQPQuery(@state.queryTerms)
      headwordSearch: e.target.checked


  handleAddTerm: ->
