I have stored some JSON objects in MongoDB collections and using Mongo jar and Java I did full text search, and I am extracting one of my DB fields using below code:
String tags2=dbo.getString("Tags");
Result:
[["pdf","java","c++"]["perl","pdf","c"]["java","c++"]]
My requirement is to split all the words and remove duplicates. I require the following output:
pdf
java
c++
c
perl
Can you please suggest a way to get this?