Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9160305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:42:26+00:00 2026-06-17T13:42:26+00:00

I have 2 types of solr query.One uses EDisMax parser and other one uses

  • 0

I have 2 types of solr query.One uses EDisMax parser and other one uses standard query parser as default.Following are the 2 query I have used.Purpose of the query is document that doesn’t contains following word ELM,PST,June.

EDisMax Query

q= content:(-EML -PST -June) OR contentenstem:(-EML -PST -June)&start=0&rows=25
&defType=edismax&fl=content filename

It produces about 12232 results; In which 4292 results of docs contains any of the given query string that EML or PST or June.So 4292 result docs are wrong.

Standard parser Query

query:q=size:[ 0 TO * ]&fq=content:( -EML -PST -June )&fq=contentenstem:( -EML -PST -June )&start=0&rows=25&fl=content file name

It produces about 7940 result.

Why EDisMax query failed for this query;How to achieve the right result with use of EDisMax parser query

If we know how EDisMax and Standard query parser parses AND & OR Boolean query on the document, we may get the answer for why different doc count occurred for different parser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T13:42:27+00:00Added an answer on June 17, 2026 at 1:42 pm

    Switch OR to AND in the EDisMax query. OR and AND act differently:

    OR will cause results that meet one or both of your restrictions (for content and contentstem).

    AND is stricter: results must meet both the restrictions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two types of data sets. Both are in same size. One contains
I have basically the same problem as discussed here: Solr wildcard query with whitespace
I have one field that is indexed as string in Solr's schema.xml, which is
I have a basic SOLR instance <?xml version=1.0 encoding=UTF-8 ?> <schema name=my-solr version=1.5> <types>
I have a Solr instance which contains documents that represent products. Each document has
I'm trying to query Solr for entries that either have a certain value in
I'm using the solrj API to query my SOLR 3.6 index. I have multiple
I have an instance of SOLR 3.6 running, with JSON as the default updateHandler.
I have the following config file for solr: <requestHandler name=/update/extract startup=lazy class=solr.extraction.ExtractingRequestHandler > <lst
I have some specific id like 1,2,5,11,64589 in solr (int type) I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.