Skip to main content

How to generate snippets in solr?


Snippet generation in the solr with lucene highlight is simple to configure task. Now with the advanced versions of he solr the snippet geneation works just fine bedefault. But there is need for change in the request.
To get the search results highlighted with the search terms in them and also to get the snippets i.e relevant text parts for users for deciding the relevance of the specific search results, you have to query the solr with parameters hl and hl.fl set to 'true' and 'filed name like title/content' etc.
Ex. Your query for the locally setup solr will be
http://localhost:8983/solr/select/?q=learning%20management%20systems&version=2.2&start=0&rows=10&indent=on&hl=true&hl.fl=CONTENT
where CONTENT is my name of my field which may be different for others.

And the highlighted part of the results occure at the botton after the results tag, as .
And in that the search terms are enclosed in the tags.

Comments

Popular posts from this blog

Publishing business basics

Basic Steps:
1. Decide name for the company
2. Register the company with ministry - you will need an attorney (Lawyer for that)
3. Register with Registrar of News Papers in India if it's a magazine/News paper. 
4. Study the relevant acts in general or get them known from the lawyer
5. Start publishing

Following are details regarding the same (not that well written) :

-----
Some starts and books;
* Start Your Own Self-Publishing Business (Entrepreneur Magazine's Start Up) by Entrepreneur Press 
* How To Start And Run A Small Book Publishing Company: A Small Business Guide To Self-Publishing And Independent Publishing by Peter I. Hupalo * Art & Science Of Book Publishing by Herbert S., Jr. Bailey * This Business of Books: A Complete Overview of the Industry from Concept Through Sales by Claudia Suzanne
Raja Rammohun Roy National Agency for ISBN
West Block-I, Wing-6, 2nd Floor,
Sector -I, R.K. Puram,
New Delhi-110066


Some new things and the initiatives in the area : Pothi.com

Starting it is …

काही सुंदर अशी मराठी गाणी

>Suhasya tuze manasi mohi
http://www.esnips.com/displayimage.php?pid=22969903

>Jenvha Tuzya batanna udawi mujor wara
http://www.esnips.com/displayimage.php?pid=22969806

>Bhay ithale sampat nahi
http://www.esnips.com/displayimage.php?pid=22969806

>Pahile na mi tula
http://www.esnips.com/displayimage.php?pid=22969877

>Te sparsha chandanyanche
http://www.esnips.com/displayimage.php?pid=2086815

Installing SyntaxNet on ubuntu - Deep learning - tensorflow

1. Install Java8 (Java7(deprecated)
2. Install Brazel:
$ echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list $ curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add - sudo apt-get update && sudo apt-get install bazel 3. sudo apt-get install swig
4. sudo pip install -U protobuf==3.0.0b2 5. sudo pip install asciitree 6. sudo pip install numpy Then you must have git installed : sudo apt-get install git and then built and test

git clone --recursive https://github.com/tensorflow/models.git cd models/syntaxnet/tensorflow ./configure cd .. bazel test syntaxnet/... util/utf8/... # On Mac, run the following: bazel test --linkopt=-headerpad_max_install_names \ syntaxnet/... util/utf8/...