Solr field collapsing - solr

I read
http://wiki.apache.org/solr/FieldCollapsing
and I tried the query
http://192.168.0.1:8080/solr/append/select?q=mobile&group=true&group.field=brand
and I don't see the field collapsing. I mean I see the results, but not the grouping. My understanding is it should work, nothing to change in the solrconfig.xml ? In my schema, all my field are stored/index. My index is Lucene 2.9 and my Solr is 1.4.1. I don't see what I doing wrong...

Field collapsing is not available in Solr 1.4.1. You need Solr 3.3 or 4.0 (currently unreleased).
The wiki page about field collapsing also explains "If you haven't already, get a recent nightly build of Solr4.0 or Solr3.3..."
Look for "warning tags" in the Solr wiki that show when a particular feature is available only since a particular version of Solr:

Related

Solr no content field = no highlighting

I want to add highlighting to my search result from Solr. My problem is the query don't contain any content field.
Search seems to work, but I guess that when I create the index I need to tell Solr to stored the texts or something.
I am running Solr on Windows.
java -Dc=aceapps -Dauto=yes -Ddata=files -Drecursive=yes -Dfiletypes=pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html -jar example/exampledocs/post.jar "\user\PowerBI"
Hard to answer when we don't know your schema.xml or solrconfig.xml
Have a look at the Wiki for the standard highlighter:
https://cwiki.apache.org/confluence/display/solr/Standard+Highlighter
Solr also comes with an example core called techproducts and in there is a good example of highlighting. Look at the request handler and highlighter in the solrconfig.xml and the fields it's being applied to in that example.

how to find out what Solr version is DSE using

I am trying to find out what Solr version our DSE setup is using. I know it uses a custom modified solr, but I want to know the index Lucene version.
Apart from opening an index with Luke, is there somewhere where DSE shows this info? I don't see it in the Solr admin overview.
EDIT: I am only counting on looking at the setup, not any doc
Check the release notes:
http://docs.datastax.com/en/datastax_enterprise/4.8/datastax_enterprise/RNdse.html
You can also see it in your system.log on startup.
Note: solr and lucene versions are the same now that they are a single project:
https://github.com/apache/lucene-solr/releases
In the solrconfig.xml, there is usually a line such as this:
<luceneMatchVersion>5.3.0</luceneMatchVersion>
This gives you the minimum version of Lucene required.

Updating Solr Field Value

is there any possibility to update a value of a Solr-Field without reindexing the whole document?
Nope.
You need to index the document again with all the fields.
Solr will delete and insert the document again.
There is nice talk about it you may want to hear.
This functionality is available in the Solr version 4.0. That version is still in Beta, but will most likely be released before the end of the year. Please see the post - Solr 4.0: Partial documents update for more details on how this works.
When you want to change a single field of a document you will have to reindex the whole document, as solr does not support updating of a field only.

Solr 4 - Missing Field Collapsing Components

according to the Solr Wiki (http://wiki.apache.org/solr/FieldCollapsing) field collapsing should be available in Solr 4. As far as I know, it is necessary to add the following configuration to the solrconfig.xml to activate field collapsing:
<searchComponent name="query"
class="org.apache.solr.handler.component.CollapseComponent" />
I downloaded the latest nightly build apache-solr-4.0-2011-10-26_08-46-59.zip from https://builds.apache.org/job/Solr-trunk/, updated my project from lucidworks solr 3.2 to apache solr 4.x and finally found out, that the class org.apache.solr.handler.component.CollapseComponent is not available inside the apache-solr-core-4.0-2011-10-26_08-46-59.jar.
Can anyone point me to the right direction, where to find the missing components?
Best regards and thanks in advance,
Tobi
Solr field collapsing was released as a part of stable release 3.3
So you can use the latest 3.4 Solr stable build, which should have the components included with it.
As well, it does not require any special components to be included.
Passing group=true&group.field=some_field should have it working without any changes.

Solr More Like This results narrowed down by facet field

I have a single Solr instance for indexing multiple sites content.
While indexing I am populating Website field to be able to perform faceted search on that field for every particular website...and that works ok.
Though, if I use Solr MLT feature I get results from all websites, and I want to narrow MLT results down just to the single website.
Is it possible to define facet for the Solr MLT or is there any other better way to achieve the same?
If Solr supports that, is it also available in solrnet?
Solr 3.1 doesn't support filters on the MoreLikeThis component (issue here). You have to use the MoreLikeThis handler, but this handler is not currently implemented in SolrNet (issue here). available as of 0.4.0 beta 1

Resources