cancel
Showing results for 
Search instead for 
Did you mean: 

Query retrives the deleted contents

jeyaa
Champ in-the-making
Champ in-the-making
Hi all,
I have written the query that will populate the nodes according to its created dates.
var qdate = "@cm\\:created:["+ tdate + " TO "+ fdate +"]

Now the problem is, the above query populates also the deleted nodes. So that If I iterate the nodes,
the following error occurs.

Node does not exist: workspace://SpacesStore/468b46e0-5005-4f4e-a628-75ffdf1fe718

So how could I write the query eliminating the deleted nodes.
7 REPLIES 7

patil
Champ on-the-rise
Champ on-the-rise
Restart the server.
Do the reindexing

Thanks,
Patil
Cignex Technologies
Bangalore

jeyaa
Champ in-the-making
Champ in-the-making
thanks for ur reply dude. Whats meant by reindexing? How to do that?

patil
Champ on-the-rise
Champ on-the-rise
# Recovery types are:
#    NONE:     Ignore
#    VALIDATE: Checks that the first and last transaction for each store is represented in the indexes
#    AUTO:     Validates and auto-recovers if validation fails
#    FULL:     Full index rebuild, processing all transactions in order.  The server is temporarily suspended.
index.recovery.mode=VALIDATE



Inside your repository.properties you can see the above properties.
Make
index.recovery.mode=VALIDATE to
index.recovery.mode=AUTO

then restart server


Thanks,
Patil
Cignex Technologies
Bangalore

jeyaa
Champ in-the-making
Champ in-the-making
Patil,
I have tried as you said. But still the problem persists. I think the query is retriving also the archived contents. So I have modified the above query like this.

@cm\\:created:["+ tdate + " TO "+ fdate +"]  -ASPECT:\"sys:archived\"";

Still the problem stays. I dont have any solution for the above problem.
Shall I use archive://SpacesStore?
If so how to post it in the query?
Please help me in this issue.


Jeya A
Bangalore

patil
Champ on-the-rise
Champ on-the-rise
index.recovery.mode=VALIDATE

1. try by making AUTO and FULL

2. The temporary fix is after getting the node you check the existence of the node by using
nodeService.exists(nodeRef)


Thanks,
Patil
Cignex Technologies
Bangalore

jeyaa
Champ in-the-making
Champ in-the-making
Patil, I am getting the nodes while executing the query, how could I get the instance of nodeService?

jeyaa
Champ in-the-making
Champ in-the-making
Hi Patil,
I didn't found any service same like nodeService. Still stuck in there. I hope this would work populating the archived nodes and then omitting it. Do you have any idea how to write a query to populate archived nodes.


Thanks,
Jeya