cancel
Showing results for 
Search instead for 
Did you mean: 

Get Lucene Search Result by Javascript?

samjeff
Champ in-the-making
Champ in-the-making
Dear all,

Every file uploaded to Alfresco, Lucene always make indexing about the file content.
How can I access this?
I would like to access it by javascript.
Please help me..

It is something like this:
document.properties.luceneindexresult

Would you please to help me how I can access the result index of every document?
I really appreciate your help
2 REPLIES 2

jbarmash
Champ in-the-making
Champ in-the-making
you cannot access the Lucene index information through document.   You can perform seaches using those indexes, but there i no reference to indexes themselves available.

Out of curiosity, why are you interested in accessing the indexes?

samjeff
Champ in-the-making
Champ in-the-making
I would like to transform PDF to TXT, and transform result to be input in a field.
When I make a Javascript Rule to transform, it run twice:
1. Before Javascript Rule, it run from Transform Runtime exec, I think this is running from Lucene Indexing
2. Then the rule itself

So, every file running 2 times for indexing.
I want only 1 execute time only.
Is this because Lucene Indexing?
I found when new, copy, delete, update a file, it always transform.
Is this because of Index?
How to setup Lucene, so that only new file will be index? I want other action: delete, copy, update -> no indexing.
Please help me.
Thanks so much.