FAQ Database Discussion Community


How do I query (via url) the solr.admin.LukeRequestHandler to get collection index data

solr4
I want to use the luke handler as suggested in Solr schema, how to get dynamic fields in a collection, which is http://solr:8983/solr/admin/luke?numTerms=0 but the 4.10.3 solrconfig.xml has the following entry which indicates luke has been rolled into /admin/ and I should be able to use the http://localhost:8983/solr/admin path, which...

Faceted Range Query for Solr. Can't parse gap 1,2,3,10 for field

solr,solr4,solr-query-syntax
I am trying to query data (using solr) and get castleid granularity. I have a local running instance of Solr 4.10. On a begging I've made simple query like in solr wiki for range faceting: Solr examples for range faceting I tried the following query: &facet=true &facet.range=castleid &f.castleid.facet.range.start=0 &f.castleid.facet.range.end=1000 &f.castleid.facet.range.gap=1,2,3,10...

PHP Solarium: Updating Parts of Documents

php,solr,solr4,solarium
I want to update parts of a document in Apache Solr 4.0 with PHP Solarium, and not update the whole document. I know its possible in Solr (documentation in Solr), I just cant find any documentation on how to do this in Solarium. all the existing Solarium documentation point me...

Solr : stemming in a live cluster (reindexing issues)

solr,solr4,solrcloud
I have a live Solr cluster where stemming was not enabled and my schema.xml looks like this: .. <field name="Searchable_Text" type="text_general" indexed="true" stored="true" multiValued="false"/> .. <field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/> .. <copyField source="Searchable_Text" dest="text" maxChars="3000"/> .. <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> <analyzer type="index"> <tokenizer...

How to build solr.tgz file from source using “ant package”

ant,solr,solr4,solrcloud
I want to build a .tgz distribution file from solr. The build.xml file tells me to use "ant package". However, running ant package gets everything from svn and builds ./package/solr-6.0.0-SNAPSHOT.zip whereas my code base is from lucene_4_10_x branch. How do I build ./package/solr-4.10.3.zip from the source code? I need to...

cursorMark is stateless and how it solves deep paging

apache,solr,lucene,solr4
as specified here cursormark is stateless but I don't get how it it is solving deep paging issue if its stateless. Does solr stores the indexed data in sort by unique key field if so then it will clarify my confusion. if I am wrong please explain how the cursormark...

Solr search dash in part number

search,solr4
I'm having some difficulties with either how to construct the Solr query, or how to setup the schema to get searches in our web store to work better. First some configuration (Solr 4.2.1) <field name="mfgpartno" type="text_en_splitting_tight" indexed="true" stored="true" /> <field name="mfgpartno_sort" type="string" indexed="true" stored="false" /> <field name="mfgpartno_search" type="sku_partial" indexed="true" stored="true"...

Solr will use Highlighter instead of FastVectorHighlighter warning

solr,highlighting,solr4,sunspot-rails,sunspot-solr
Hi I'm developing rails app with Solr 4.1 search engine, When I add highlighting to searchSolr start spaming the tomcat6 log with this warning: Jan 29, 2015 12:13:38 PM org.apache.solr.highlight.DefaultSolrHighlighter useFastVectorHighlighter WARNING: Solr will use Highlighter instead of FastVectorHighlighter because *Field_Name* field does not store TermPositions and TermOffsets. Example of...

DocExpirationUpdateProcessorFactory not deleting records

solr,solr4,solrcloud
I am trying to use the DocExpirationUpdateProcessorFactoryfactory in Solr 4.10.1 version. I have included the following in my solrconfig.xml <updateRequestProcessorChain default="true"> <processor class="solr.UUIDUpdateProcessorFactory"> <str name="fieldName">id</str> </processor> <processor class="solr.TimestampUpdateProcessorFactory"> <str name="fieldName">timestamp</str> </processor> <processor class="solr.processor.DocExpirationUpdateProcessorFactory"> <int...

Replcating Schemaless SOLR Index

solr,lucene,solr4
I have an index on a Schemaless solr instance. To allow the application to query some of the fields that are in this index, I have to register these fields using the schema REST API http://localhost:8983/solr/schema/fields. All works fine in isolation. I can also replicate the index to slaves without...

In Solr serch multiple objects not updated

solr,solr4
In solor search multiple objects are not update or insert Please help me. "materialNames":[ { "material_id":1, "description":"Motor Oil", "business":"", "residential":"", "notes":"" }, { "material_id":2, "description":"Oil Filters", "business":"", "residential":"", "notes":"" } ] ...

How to index more than one entity in ApacheSolr

java,apache,solr,lucene,solr4
The mwikipage alone is indexed by solr, All other mapped entities are not indexed / ignored by ApacheSolr while doing indexing, data-config.xml <dataConfig> <dataSource batchSize="1" driver="com.mysql.jdbc.Driver" password="123" type="JdbcDataSource" url="jdbc:mysql://localhost:3306/cwiki" user="root"/> <document name="mediawiki-doc"> <!-- mwiki page --> <entity name="mwikipage" query="SELECT * FROM mwikipage"> <field column="page_id" name="id"/> <field column="page_title" name="page_title"/>...

Build Solr with custom version string

ant,solr,solr4
I've modified a patch for Solr 4.10.4, I have it working, and I can successfully compile and package it. I now want to customize the version to indicate that it's not vanilla Solr. I've looked though the ant build configurations, but I haven't been able to find the actual version...