solr - query document which has particular word at last index of that field -


i have field textfield data type

i want search if has particular word @ last index of field,

for example.

my field title value elligator red lace men's running sports shoes

now want search documents has shoes last word in title.

have tried search solr regex ? (supported solr 4.0+.)

q=title:/.*shoes/ 

for this, title field must of type stringfield, not tokenized.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -