You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: fulltext_test.rb
    path of file: ./repos/search_cop/test
    
    the code of the file until where you have to start completion: require File.expand_path("test_helper", __dir__)

class FulltextTes
    
  def test_complex
    product1 = create(:product, title: "word1")
    product2 = create(:product, title: "word2 word3")
    product3 = create(:product, title: "word2")

    results = Product.search("word1 OR (title:word2 -word3)")

    assert_includes results, product1
    refute_includes results, product2
    assert_includes results, product3
  end