Ising model is defiend as $$ \mathcal{H}=-H\sum_i S_i -\frac{1}{2}\sum_{i,j}J_{ij}S_i,S_j $$ In 1D we assume that indices $i,j$ are integers, $i,j\in\mathbb{Z}$, and that the coupling depends only on the distance between the spins: $$ J_{ij} = J(|i-j|). $$ Then (at least for the nearest neighbor coupling) the model does not exhibit a phase transition at finite temperature.
On the other hand, if we consider that $J_{ij}=J$ is a constant, we have the infinite-range Ising model, which can be solved by mean field theory and exhibits a phase transition at finite temperature. However, this formally falls under the 1D case described above.
Question: Is this contradiction appears only in infinite range limit (i.e., there is no phase transition in a finite range 1D Ising model) OR should finite range Ising model be considered as different from 1D?
Auxhiliary question: what really determines formally the dimensionality of the model? The number of nearest neighbors?
Background: what really interests me is a possibility of a phase transition in an Ising/Potts model with random couplings (one-dimensional in real space), but I would like to understand well the basics.