Skip to main content
WolfShade
Legend
June 27, 2012
Question

Solr search - limit to documents that contain ONLY keyword

  • June 27, 2012
  • 1 reply
  • 579 views

Hello, everyone.

Is there a way to either configure the Solr collection, or CF code to use, that will limit the search to return only documents that contain the keyword, and NOT documents that may be contextually related?

For example, if a user enters a keyword of "pets", return a list of documents (PDFs) that contain ONLY the word "pets" (not "pet", not "petroleum", not "petty", etc.)  The client wants only documents with specific keywords, only.

I've tried using type="explicit" in the CFSEARCH tag, but no matter what type I set it to CF Server 9.0.1 stops with the message "error executing query:unknown_handler_explicit".

I know that the contextual search is what makes Solr so robust.  Is there a way to override contextual searching?

Thanks,

^_^

This topic has been closed for replies.

1 reply

WolfShade
WolfShadeAuthor
Legend
June 27, 2012

I'm going to try to write code that will reduce the contextual searches and "fuzzy" searches.  Anyone have alternative suggestions?  Configuration options?  Anything?

Thank you,

^_^

WolfShade
WolfShadeAuthor
Legend
June 28, 2012

Okay, so that didn't work.  Can anyone help me with configuration options?

^_^