cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Solr search on string type indexed property

Former Member
0 Likes
721

Hi Experts,

As per my analysis, it looks like solr search is not looking for a value in defined indexedProperty of type "String" as I am getting search results from indexed properties of type "text". Example, I am unable to search value provided under Product's code attribute for which indexed property is of String type.

is there any way I can make solr to search in indexed property of string also.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

It searches but the things is your product code should n't contain any white space. It treats that as a different literals. So either have your product code without any special character and then try or use Text type.

Former Member
0 Likes

Thanks Aashish.

In general, will look in SolrIndexedProperty of type "text" for search. Right? I am interested in knowing where solr will search.

Thanks

David_A_C
Participant
0 Likes

if the product code an alphanumeric you will have issues, you can try change the SolrIndexedProperty.type(code) from string to text

Former Member
0 Likes

Thanks David.

Yes, it is alphanumeric. I will try to change it to text. So, if I am not wrong SOLR, in general, will look in SolrIndexedProperty of type "text" for search. Right? I am interested in knowing where solr will search.

Thanks