Solr Search Component For Sitecore 9.2  

 

Startup open source project for a Configurable Solr Search Component For Sitecore 9.2

 

Mhasasneh-SearchUI is a configurable Solr Search component for Sitecore 9.2 that can allow the developer to run solr search queries without writing code by using set of settings and operators in Sitecore tree.

Built With

Solr Search component tested with the following versions:

  1.   Sitecore9.2

  2.  Solr 8.2

 

How to Install the module to Sitecore 9.2?

1- open the Content Management admin dashboard

2- Navigate to installation wizard

3-Upload the module package “Mhasasneh SearchUI-1.0.0.zip”

4-Press next and install

5- If you got this message just press No

6- Done 😜 , you should see the following Settings items in your instance template tree

 

How to use the Solr search module ?

1-Create new search setting item

 

Let’s assume we have list of items and sub-children under home tree that includes different types of items.

 

Now let’s create 5 search scenarios by using search settings as following:

• Scenario 1

Retrieve only all news items and sub items under root items folder and in the show result show only Name, Title and Description.

In order to get the above result, we need to create the following settings:

1- Create scopes setting and select your root item

 

2- Create search results fields setting and file the filed name that you want to show in the result view, please make sure you write the same filed name separated by comma.

 

3- Create Queries setting and add new template id query to filter on the news type only

 

We are done with the settings now let’s add the search rendering component to the home page and see the result.

 

In case you get this error “Compiler Error Message: CS1525: Invalid expression term '.” Please make sure your web.config has the “DotNetCompilerPlatform”

 

Finally you will get the expected result based on the above scenario 

 

• Scenario 2

Retrieve only all news items and sub items under root items folder and in the show result show only Description if the news date filed is greater or equal 10/19/2019.

1- Change the Search Results Fields setting to have only the Description Field

 

2- Create new Date Query and write your operator query by following this pattern

{filed name} {operator} {date value}

EX: CustomDate >= 10/19/2019

 

•• Run the page again and you will get only 3 result based on the provided date

 

•Let’s try to change one of the news date and refresh the page again

 

• Scenario 3

Retrieve only all news items and sub items under root items folder and in the show result show only Description if the news date filed is greater or equal 10/19/2019 and the news price equal to 10.

1- Create new Number query and write your operator query by following this pattern

{filed name} {operator} {price value}

EX: Price = 10

 

• Scenario 4

Retrieve only all news items and sub items under root items folder and in the show result show only Description if the news date filed is greater or equal 10/19/2019 and the news price equal to 10 and filter on them based on news Category..

1- Create new facets (filters) setting

 

2- Add new facets based on news category filed

 

Refresh the page and see the result

 

• Scenario 5

Multiple Partial Word Query , you can search for multiple word.

 

• Scenario 6

Multiple Partial Word Query with Highlight Query.

1- Create new Highlight Query and set the value to true

 

• Summary

Please note that this is just an idea for configurable search component to make search more easy, so please feel free to clone the code and implement more functionality and any missing scenarios.Finally don't forget to reshare your implementation again with the community

16 Comments

  • AJ

    22 months ago

    Excellent Work Mohannad, the module will accelerate the search-driven solutions and will benefit the Sitecore community big time. Great Job

  • edvomndos

    5 months ago

    Gap
    <a href="http://www.gz2k9f4v759u4s71ac4s99o5ehx8cl29s.org/">aedvomndos</a>
    edvomndos http://www.gz2k9f4v759u4s71ac4s99o5ehx8cl29s.org/
    [url=http://www.gz2k9f4v759u4s71ac4s99o5ehx8cl29s.org/]uedvomndos[/url]

  • zglsoqgcyw

    2 months ago

    Gap
    [url=http://www.gg24jm8g26m5k80p4vn9hz5adz1899c5s.org/]uzglsoqgcyw[/url]
    zglsoqgcyw http://www.gg24jm8g26m5k80p4vn9hz5adz1899c5s.org/
    <a href="http://www.gg24jm8g26m5k80p4vn9hz5adz1899c5s.org/">azglsoqgcyw</a>

  • ngqjvdlcwo

    2 months ago

    Gap
    <a href="http://www.guh083584y041tny8o4ykk8g68wd91lvs.org/">angqjvdlcwo</a>
    [url=http://www.guh083584y041tny8o4ykk8g68wd91lvs.org/]ungqjvdlcwo[/url]
    ngqjvdlcwo http://www.guh083584y041tny8o4ykk8g68wd91lvs.org/

  • lvrplldbi

    6 weeks ago

    Gap
    [url=http://www.g9lxo6k6q6ll4z0i4t9w248t3r4e920fs.org/]ulvrplldbi[/url]
    <a href="http://www.g9lxo6k6q6ll4z0i4t9w248t3r4e920fs.org/">alvrplldbi</a>
    lvrplldbi http://www.g9lxo6k6q6ll4z0i4t9w248t3r4e920fs.org/

  • zxctngrdhy

    6 weeks ago

    Gap
    [url=http://www.gzf877368vw6ocsk9yb95882ac9nn18ts.org/]uzxctngrdhy[/url]
    zxctngrdhy http://www.gzf877368vw6ocsk9yb95882ac9nn18ts.org/
    <a href="http://www.gzf877368vw6ocsk9yb95882ac9nn18ts.org/">azxctngrdhy</a>

  • jfitqqjo

    6 weeks ago

    Gap
    <a href="http://www.ghg6t33f096x5r380cnu2d21k7iir69ws.org/">ajfitqqjo</a>
    jfitqqjo http://www.ghg6t33f096x5r380cnu2d21k7iir69ws.org/
    [url=http://www.ghg6t33f096x5r380cnu2d21k7iir69ws.org/]ujfitqqjo[/url]

  • qqznlwop

    6 weeks ago

    Gap
    qqznlwop http://www.ghk8bn010tms4346kv4g5fm31mt964p8s.org/
    <a href="http://www.ghk8bn010tms4346kv4g5fm31mt964p8s.org/">aqqznlwop</a>
    [url=http://www.ghk8bn010tms4346kv4g5fm31mt964p8s.org/]uqqznlwop[/url]

  • ijmhvkhlpm

    6 weeks ago

    Gap
    ijmhvkhlpm http://www.ghsl5p60sa0q3w23t8wth643s8467wz4s.org/
    <a href="http://www.ghsl5p60sa0q3w23t8wth643s8467wz4s.org/">aijmhvkhlpm</a>
    [url=http://www.ghsl5p60sa0q3w23t8wth643s8467wz4s.org/]uijmhvkhlpm[/url]

  • zpqgqfhq

    5 weeks ago

    Gap
    [url=http://www.g563b3eyu43w732zuq39u80e1kdwp0p4s.org/]uzpqgqfhq[/url]
    <a href="http://www.g563b3eyu43w732zuq39u80e1kdwp0p4s.org/">azpqgqfhq</a>
    zpqgqfhq http://www.g563b3eyu43w732zuq39u80e1kdwp0p4s.org/

  • hlrqxqlzdk

    5 weeks ago

    Gap
    hlrqxqlzdk http://www.g0e2st319326sxay744ri26qr54wd4nts.org/
    [url=http://www.g0e2st319326sxay744ri26qr54wd4nts.org/]uhlrqxqlzdk[/url]
    <a href="http://www.g0e2st319326sxay744ri26qr54wd4nts.org/">ahlrqxqlzdk</a>

  • gblcxqggzk

    3 weeks ago

    Gap
    <a href="http://www.g1b3az4253442359oua5dmiyyq4jig37s.org/">agblcxqggzk</a>
    [url=http://www.g1b3az4253442359oua5dmiyyq4jig37s.org/]ugblcxqggzk[/url]
    gblcxqggzk http://www.g1b3az4253442359oua5dmiyyq4jig37s.org/

  • pcqhrldzbd

    2 weeks ago

    Gap
    <a href="http://www.g4537lq896f3trp6pba9494sp3zsq4y1s.org/">apcqhrldzbd</a>
    [url=http://www.g4537lq896f3trp6pba9494sp3zsq4y1s.org/]upcqhrldzbd[/url]
    pcqhrldzbd http://www.g4537lq896f3trp6pba9494sp3zsq4y1s.org/

  • imhndjtb

    2 weeks ago

    Gap
    [url=http://www.gt56m8z5xc0x1r66cnht184tp320t0y7s.org/]uimhndjtb[/url]
    imhndjtb http://www.gt56m8z5xc0x1r66cnht184tp320t0y7s.org/
    <a href="http://www.gt56m8z5xc0x1r66cnht184tp320t0y7s.org/">aimhndjtb</a>

  • yohmbzxrh

    8 days ago

    Gap
    yohmbzxrh http://www.g31mspl42gx4h38mmah75442ew8fd018s.org/
    [url=http://www.g31mspl42gx4h38mmah75442ew8fd018s.org/]uyohmbzxrh[/url]
    <a href="http://www.g31mspl42gx4h38mmah75442ew8fd018s.org/">ayohmbzxrh</a>

  • diqlhxhwn

    7 days ago

    Gap
    [url=http://www.gp2g87b1903kkc6pg9h3qzzt975j286zs.org/]udiqlhxhwn[/url]
    diqlhxhwn http://www.gp2g87b1903kkc6pg9h3qzzt975j286zs.org/
    <a href="http://www.gp2g87b1903kkc6pg9h3qzzt975j286zs.org/">adiqlhxhwn</a>

Leave A Comment