How would you best deal with a page field in solr?

Possible ranges are numbers (1 to 1000s) but also could include appendix
page that include roman and alphabet characters (i, ii, iii, iv, as well as
a, b, c, etc).

It makes sense people would want to search for things between page 1 to 5
but I cannot really see how someone would search for page iv to 50.

I was thinking to split this into two fields, one is just a string for exact
matching (maybe case insensitive) and the other as a number for ranges. This
would allow search for page ranges as well as exact matches.

Has anyone had experience with pages or the like in solr? Is splitting it
into two fields like this needed or can I do that with one of the standard
filters that I have missed?

-- 
Regards,
Ian Connor

Reply via email to