Skip to content

Partial name searching doesn't work #21

@mlickei

Description

@mlickei

Partial name searching doesn't work with a first name and at least a URL. According to the API documentation, if you're doing a search that includes a first name of at least 1 character and at least a URL then the search should still work. When I try this I get the following exception:

java.lang.IllegalArgumentException: Some fields are unsearchable: [Joel]
    at com.pipl.api.search.SearchAPIRequest.validateQueryParams(SearchAPIRequest.java:288)
    at com.pipl.api.search.SearchAPIRequest.send(SearchAPIRequest.java:320)
    at com.pipl.api.search.SearchAPIRequest.send(SearchAPIRequest.java:401)

My search object looks like the following:

{
	"names": [{
		"first": "Joel"
	}],
	"addresses": [],
	"phones": [],
	"emails": [{
		"address": "clark.kent@exmaple.com"
	}],
	"jobs": [{
		"organization": "Vesta"
	}],
	"educations": [],
	"images": [],
	"usernames": [],
	"user_ids": [],
	"languages": [],
	"ethnicities": [],
	"origin_countries": [],
	"urls": [{
		"url": "https://www.linkedin.com/in/joel-g-bb065115b"
	}],
	"relationships": [],
	"tags": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions