The present invention relates to a compound of formula (I): in which: R is a linear or branched alkyl group containing between 1 and 3 carbon atoms, Y is CH or N, and p is an integer between 0 and 3 and preferably 0 and 1, and salts thereof, either acid-addition salts with a pharmaceutically acceptable organic or mineral acid, or base-addition salts with a pharmaceutically acceptable organic or mineral base. The invention also relates to a process for preparing the compound of formula (I), and to a pharmaceutical composition comprising it. The invention also relates to the use of an indazole for preparing a pharmaceutical composition that is active in the treatment of neuropathic pain.