cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA search service & fts

vincent-kali
Star Contributor
Star Contributor
Hi,
I'm using JAVA searchServices API to perform some fts search in repository.
I'd like to get from the resultSet the matching word/phrase found by SOLR.

eg: search for "A WOR" and return "A WORD" (if found in a document).

Is this possible ?

thanks,
vincent
3 REPLIES 3

vincent-kali
Star Contributor
Star Contributor
another (better) way to express my question: how to extract content / metadata using solr ?

mrogers
Star Contributor
Star Contributor
Sorry don't understand your clarification.    To answer your first question your search can either be a textual search or a tokenized search.   

So A WOR matching A WORD must be a text search - because it won't match through tokens.    So it will be something like =A WOR*

http://docs.alfresco.com/4.0/concepts/rm-searchsyntax-exact.html

vincent-kali
Star Contributor
Star Contributor
OK. What i'm trying to do is to extract the matching word/phrase/token found by solr.

I found an example here (https://lucidworks.com/blog/poor-mans-entity-extraction-with-solr/) but not in alfresco context.

For example, I search for "CLIENT:?????" in content file, and I expect solr to return "CLIENT:CNAME" word.
Is it possible ?
Vincent