Re: highlighting required in document

2013-07-23 Thread Dmitry Kan
You just need to specify the emphasizing tag in hl params by adding
something like this to your query:



hl.fl=contenthl.simple.pre=bhl.simple.post=%2Fb

Check the solr admin page, the querying item, it shows the constructed
query, so you don't need to guess!

Regards,

Dmitry


On Mon, Jul 22, 2013 at 10:31 AM, Jamshaid Ashraf jamshaid...@gmail.comwrote:

 Hi,

 I'm using solr 4.3.0  following is the response against hit highlighting
 request:

 Request:
 http://localhost:8080/solr/collection2/select?q=content:ps4hl=true

 Response:

 doc
  arr name=contentstrThis post is regarding ps4 accuracy and qulaity
 which is smooth and factastic/str/arr
 /doc
 lst name=highlighting
 lst name=1
  arr name=contentstrThis post is regarding bps4/b accuracy and
 qulaity which is smooth and factastic/str/arr
 /lst

 I wanted result like this:

 doc
  arr name=contentstrThis post is regarding bps4/b accuracy and
 qulaity which is smooth and factastic/str/arr
 /doc
 lst name=highlighting
 lst name=1
  arr name=contentstrThis post is regarding bps4/b accuracy and
 qulaity which is smooth and factastic/str/arr
 /lst

 Thanks in advance!

 Regards,
 Jamshaid



Re: highlighting required in document

2013-07-23 Thread Dmitry Kan
Ah, I think I misread your question. So your question is actually, how make
solr embed higlighting into the doc response itself. I'm not aware of such
a functionality. This why you have the highlighting section in your
response.


On Tue, Jul 23, 2013 at 2:30 PM, Dmitry Kan solrexp...@gmail.com wrote:

 You just need to specify the emphasizing tag in hl params by adding
 something like this to your query:



 hl.fl=contenthl.simple.pre=bhl.simple.post=%2Fb

 Check the solr admin page, the querying item, it shows the constructed
 query, so you don't need to guess!

 Regards,

 Dmitry



 On Mon, Jul 22, 2013 at 10:31 AM, Jamshaid Ashraf 
 jamshaid...@gmail.comwrote:

 Hi,

 I'm using solr 4.3.0  following is the response against hit highlighting
 request:

 Request:
 http://localhost:8080/solr/collection2/select?q=content:ps4hl=true

 Response:

 doc
  arr name=contentstrThis post is regarding ps4 accuracy and qulaity
 which is smooth and factastic/str/arr
 /doc
 lst name=highlighting
 lst name=1
  arr name=contentstrThis post is regarding bps4/b accuracy and
 qulaity which is smooth and factastic/str/arr
 /lst

 I wanted result like this:

 doc
  arr name=contentstrThis post is regarding bps4/b accuracy and
 qulaity which is smooth and factastic/str/arr
 /doc
 lst name=highlighting
 lst name=1
  arr name=contentstrThis post is regarding bps4/b accuracy and
 qulaity which is smooth and factastic/str/arr
 /lst

 Thanks in advance!

 Regards,
 Jamshaid





highlighting required in document

2013-07-22 Thread Jamshaid Ashraf
Hi,

I'm using solr 4.3.0  following is the response against hit highlighting
request:

Request: http://localhost:8080/solr/collection2/select?q=content:ps4hl=true

Response:

doc
 arr name=contentstrThis post is regarding ps4 accuracy and qulaity
which is smooth and factastic/str/arr
/doc
lst name=highlighting
lst name=1
 arr name=contentstrThis post is regarding bps4/b accuracy and
qulaity which is smooth and factastic/str/arr
/lst

I wanted result like this:

doc
 arr name=contentstrThis post is regarding bps4/b accuracy and
qulaity which is smooth and factastic/str/arr
/doc
lst name=highlighting
lst name=1
 arr name=contentstrThis post is regarding bps4/b accuracy and
qulaity which is smooth and factastic/str/arr
/lst

Thanks in advance!

Regards,
Jamshaid