Hi,

I am having an issue while trying fetch exact match using search api solr. I have created an aggregated field for search combining some fields then trying to fetch result by using that field but its not returning exact match result

Suppose i have two content titled "Type 1" and "Type 5" while i am searching with "type 1" its returning both results, it should return only one. I have many different things like changing schema.xml and writing search_api_query_alter and pass "fq=" param but nothing worked.

Any help on this will be highly appreciated.

Thanks
Prithiraj

Comments

prithiraj created an issue. See original summary.

prithiraj’s picture

Priority: Normal » Critical
mkalkbrenner’s picture

Category: Bug report » Support request
Priority: Critical » Minor
Issue tags: -solr, -Apache Solr Search, -fulltext, -Search API

Hi,

your issue is neither a bug report, nor it is critical according to drupal.org's definition.

I'm not that familiar with the 7.x version of this module, but I can answer your support request from the Solr perspective.
If you want to have something like an exact match you have mainly three possibilities:

  1. index the required Tokens as strings
  2. tweak your fulltext field:
    • disable the minimum word length filter as you search for single characters
    • disable stemming or add the expected word to the list of protected words
    • search for phrases "Type 1"
  3. Configure boosts to rank the "exacter matches" higher
prithiraj’s picture

Hi @mkalkbrenner,

Can you tell how exactly you want me to disable minimum word length filter and streaming , is it related to module configuration or schema.xml. I have searched for these but didnt find anything.

If you have any idea please share. I need urgent help.

Thanks
Prithiraj

mkalkbrenner’s picture

You have to consult the Solr documentation for the details.
And you should ping "drunken monkey" for 7.x support.

drunken monkey’s picture

Status: Active » Fixed

Can you tell how exactly you want me to disable minimum word length filter and streaming , is it related to module configuration or schema.xml. I have searched for these but didnt find anything.

They are in the Solr configuration, schema.xml. See also here.
And yes, as Markus said: Just because it’s urgent for you doesn’t mean it’s a “critical” or even “major” issue.

And you should ping "drunken monkey" for 7.x support.

Please don’t! That’s what this issue queue is for, no pinging necessary!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.