Special character in Querry string doesnt work in Android

Hi sir,

I am using following quarry string to search index, but getting error.

“Category1:“Women & Men” AND (brand.name:L’Homme)”

index.searchAsync(query, completionHandler);

giving me error : String end at column 41

I have tried using the settings also in index
index.setSettings(
new JSONObject().put(“separatorsToIndex”, “’”)
);

still does not work, please help

Hi there I believe you need to either escape characters or wrap them in double quotes:

index.search(
  new Query("query")
    .setFilters("content:'It\\'s a wonderful day'")
);

index.search(
  new Query("query")
    .setFilters("content:'She said \"Hello World\"'")
);

See https://www.algolia.com/doc/api-reference/api-parameters/filters/