What's the meaning of 'only to find"?

Is the following correct?

Does it mean that I finally found it after searching for a long time?

Thanks.

Is the following correct?

*I tried so hard looking for her whereabouts only to find it on a site that I haven't visited in years.*Does it mean that I finally found it after searching for a long time?

Thanks.

1 2

Comments

------------

onlyFunction:

adverbb:with nevertheless the final outcome or result<won a great deal,onlyto lose it all later on>----------

Marius HancuWith the final result; nevertheless:

received a raise only to be laid off.

However, I'm not sure I know how to apply it, especially when my understanding of nevertheless is not very good.Did I use it correctly in my original example?

New2grammarI tried so hard looking for her whereabouts only to find it on a site that I haven't visited in years.Yes you used it correctly.

OptilangNew2grammarNot necessarily, but it could. What is shows is that the alternative showed up with much less effort and a bit of chance.

Marius HancuI sense that

onlyworks likein constrast. Am I right?New2grammarMarius HancuNew2grammar