Declare environment variable CBFT_ENV_OPTIONS

Hi, i’m using couchbase 5.1.1 enterprise version. I found this ticket Full Text Search LIMIT using JAVA SDK and answer .
But I can’t find in which file me need to declare it.
Could you give me link on documentations with this variable or file name where I have to do it.


I ran into the same problem where the sdk doesn’t let you set a result window higher than 10k, what you need to do is to add this line ‘export CBFT_ENV_OPTIONS=bleveMaxResultWindow=10000000’ to your ~/.bashrc

On windows it would be just like setting any other environment variable

You can look here to see how to do it programmatically: