This wont work , normally becuase the string would be tokenized into green
and energy.
If you use shingle token filter and set it as 2 , it might work.
Or in this case , you can see the position value of both the token using
the script and if its next to each other , you can take it as an
occurrence.
You can also look at developing a custom analyzer so that your phrase is
not broken up at white space.
Selecting the correct combination of char filters and tokenizers will
retain phrases.
On Tuesday, October 28, 2014 10:00:01 AM UTC, vineeth mohan wrote:
Hello Valergi ,
This wont work , normally becuase the string would be tokenized into green
and energy.
If you use shingle token filter and set it as 2 , it might work.
Or in this case , you can see the position value of both the token using
the script and if its next to each other , you can take it as an
occurrence.
On Tuesday, October 28, 2014 10:00:01 AM UTC, vineeth mohan wrote:
Hello Valergi ,
This wont work , normally becuase the string would be tokenized into green
and energy.
If you use shingle token filter and set it as 2 , it might work.
Or in this case , you can see the position value of both the token using
the script and if its next to each other , you can take it as an
occurrence.
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.