AnsweredAssumed Answered

problem in Lucene through web-service

Question asked by wael.shaban on May 8, 2007
Latest reply on Aug 26, 2010 by putodemonio
Hi,
I am trying to search in the repository using web-service and Lucene. My search depends on document metadata (properties). I am trying to search for document by name and owner (my custom document property).

I have the following problems:
1) If I created a document called "sample.txt" and search for it, search succeeded. But, if I delete the file and uploaded it again with the same name and try to search for it again, I get the following error:

Node does not exist: workspace://SpacesStore/3a8c490c-fcaf-11db-851c-ebd74aa2bd91

It appears that Lucene does not update its index and still have the same reference for old one (the deleted one).
What can I do to force the Lucene to reindex the document noting that I am using web-service API for all the work?

2) For my custom property "owner", I tried to search by using the two queries:

@\\{http\\://www.alfresco.org/model/content/1.0\\}owner:'test"
@owner\:"test"

But both fail and does not return result noting that there are documents that match the query criteria.
How can I solve this problem and can search by my custom properties?

Thanks in advance

Outcomes