Discussions
Activity
Sign In
How it works
Newscoop Support
Newscoop Solr Plugin
Vote Up
0
Vote Down
an.sa
April 2016
Posts: 57
Member
Who uses Newscoop Solr Plugin?
We install, configure, but the search is carried out only by
title
and
topics
.
How to index and search other fields:
deck
and
full_text
8 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
Rafał Muszyński
April 2016
Posts: 51
Member
Hi,
you should add those fields:
deck
and
full_text
to your Solr
schema.xml
config file. Like:
<field name="deck" type="text_general" indexed="true" stored="false" />
<field name="full_text" type="text_general" indexed="true" stored="false" />
Could you show me your current schema.xml file?
Vote Up
0
Vote Down
an.sa
April 2016
Posts: 57
Member
Hi,
No index
schema.zip
7K
Vote Up
0
Vote Down
an.sa
April 2016
Posts: 57
Member
Sorry,Rafał
I'm in the previous message put the wrong schema file.
But the field is not indexed.
schema.zip
1K
Vote Up
0
Vote Down
Rafał Muszyński
May 2016
Posts: 51
Member
Hi an.sa,
there was a bug in Newscoop core, which led to article body fields to be omitted from indexing. Thanks for spotting this!
You can update your Newscoop version to the latest v4.4 from this branch:
https://github.com/sourcefabric/Newscoop/tree/v4.4
or simply apply the changes from this Pull request:
https://github.com/sourcefabric/Newscoop/pull/1381/files
Edit: Remember to reindex your documents by running the following command:
php application/console index:delete
php application/console index:clear
Run update index command again:
php application/console index:update - I recommend to set it as a cron job and run every few minutes.
Let me know if it works for you.
Best,
Post edited by Rafał Muszyński at 2016-05-04 08:26:17
Vote Up
0
Vote Down
an.sa
May 2016
Posts: 57
Member
Hi, Rafał!
Everything is working!!!
Thank you!!!
Vote Up
0
Vote Down
an.sa
May 2016
Posts: 57
Member
Hi, Rafał!
It does not work sorting plugin
If you look at Solr admin sorting works.
http://localhost:8983/solr/ru-RU/select?q=Москва&sort=published+asc&wt=json&indent=true&defType=dismax&qf=title+topics+deck+full_text
Solr log:
2016-05-7 08:18:28.649 INFO (qtp707806938-12) [ x:ru-RU] o.a.s.c.S.Request [ru-RU] webapp=/solr path=/select params={q=Москва&defType=dismax&indent=true&qf=title+topics+deck+full_text&sort=published+asc&wt=json} hits=830 status=0 QTime=100
If you look through the plugin does not work.
http://localhost/search/?q=Москва&sort=published asc
{{ list_search_results_solr qf="title topics deck full_text" q=$r fq=$fq sort="published asc
" rows=$listRows start=$listStart }}
...
{{ /list_search_results_solr }}
Solr log:
2016-05-10 08:20:50.061 INFO (qtp707806938-11) [ x:ru-RU] o.a.s.c.S.Request [ru-RU] webapp=/solr path=/select params={core=ru-RU&q={!q.op%3DAND}Москва&df=title&defType=edismax&qf=title+topics+deck+full_text&fl=id,+number,+type,+language_id&start=0&fq=type:(articles+OR+experts)&rows=17&wt=json} hits=830 status=0 QTime=103
Vote Up
0
Vote Down
Rafał Muszyński
May 2016
Posts: 51
Member
Hi,
instead of
sort="published asc
"
use
orderBy="published asc"
inside
list_search_results_solr.
Best,
Vote Up
0
Vote Down
an.sa
May 2016
Posts: 57
Member
Thanks!
Post edited by an.sa at 2016-05-10 07:47:47
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339