I can't do a song search on an elasticsearch lyrics excerpt,
The lyric:
"... Na dia mbola zaza Na dia mbola kely ..."
if I search for "mbola zaza" it gives me the result but if I type "ola zaza" it gives me no result. Why ?
I use the standard analyzer.
Similarly, if I type "name_song artist_song" / "artist_song name_song" it doesn't give me any results.
but if I type "name_song" or "artist_song" it gives me results.
That makes more sense. So what you're suggesting is that I create my own analyzer? And my question is, can we put several analyzers on one field in the mappings?
I'm new in elasticsearch , and I don't know much about analyzer, so if you can give me some guidance
there's also the search for "artist_name song_name" or "song_name artist_name" which also remains to be resolved
Yes. If the provided ones don't match your use case, bring your own analyzer.
Yes and no. Actually no. But you can define a subfield like foo.ngram which will use the same text content provided in the foo field and apply another analyzer.
There's an example of that at:
Look for comments.synonyms...
If you search using a multimatch query on both fields, I believe this will work out of the box... Have a llok at the example I just shared. That might guide you.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.