multivalued fields (parallel) simply do not support this type of
search. You'd have to do something like index kim_lara, jake_sharan,
natalie_taylor etc then search for those terms.

A more general option is to put these in a multiValued field "name",
with a positionIncrementGap of, say, 10. Now searching for phrases
will find these, as "kim lara", which would also match "kim a lara"
assuming you searched with a "slop" of 2.

you won't get matches across names as long as the slop is < 10 due to
positionIncrementGap.

Best,
Erick

On Wed, Apr 13, 2016 at 10:23 AM, Thrinadh  Kuppili
<thrinadh...@gmail.com> wrote:
> Hi,
>
>  I have created 2 multivalued fields FirstName, Lastname
>
>  In solr the values available are :
>  FirstName": [ "Kim", "Jake","NATALIE", "Tammey"]
>  LastName": [ "Lara", "Sharan","Taylor", "Taylor"]
>
>  I am trying to search where firstName is Tammey and LastName is Taylor.
>
>  I should be able to search firstname [4] and lastname [4] and get the
> record
>  but currently it is searching with the firstname [4] and lastname [3] which
>  shouldn't not happen.
>
>  Do let me know if more details are needed.
>
>  Thnx
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-search-for-a-First-Last-of-contact-which-are-stored-in-differnet-multivalued-fields-tp4269901.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to