cancel
Showing results for 
Search instead for 
Did you mean: 

query distinct properties

kay_be_
Champ in-the-making
Champ in-the-making
I'm using lucene-indexing on a alfresco 3.4d. I want a list of unique companies (property from cmSmiley Tongueerson).
Is there a way to do distinct queries when I don't use SOLR?
When there is not, what are the alternatives? Will I have to use an algorithm to sort the result from a non distinct query? I think that would take a lot of time when there are a lot of users. Is there a way to do MySQL queries in JS?
Regards
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
I think you're going to have to do this in either JavaScript or Java.

Jeff

kay_be_
Champ in-the-making
Champ in-the-making
I created a javascript querying for all persons using a lucene search, checking if the company is in an array of companies and pushing the companyname if not. Not very efficiënt though.