We're currently using Lucene 2.1.0 for our site search and we've hit a difficult problem: one of our index fields is being ignored during a targeted search. Here is the code ... |
How do i apply one or more field level filters on existing search results returned by lucene?
Thanks!
Ed
|
I was using something like:
Field notdirectory = new Field("notdirectory","1", Field.Store.NO, Field.Index.UN_TOKENIZED);
and queries like "notdirectory:1" can be processed quite well all the time.
But recently I've changed the "Field.Store.NO, Field.Index.UN_TOKENIZED" to index a ... |
I've created a custom Tokenizer in Solr that looks for named entities. I would like to be able to use this information to populate separate fields within the lucene/solr document.
As ... |
I just wondering whenever exist a way to read the unstored, but indexed field in Lucene index? I need because I have an index and I'm going to iterate over all ...
|
I have been suggested to use Field.Set OmitNorms(true); when creating the documents for lucenesearch to sort the result according to the number of hits, but I am not clear of ... |
I have the following code and would appreciate your advice.
QueryParser queryParser = new QueryParser(searchTerm, analyzer);
Query query = queryParser.parse(searchTerm);
My first question is, this "doubled"? As I ... |
|
hi
i want to create a custom field in nutch search engine?
what are the steps i will follow?
|
I am trying to make simple readings over Lucene indexes by using SolrJ. I have been able to access the sample index available in the SolrJ download, but I get an ... |
I'm trying to search for results within a range e.g. A TO C. However the results are coming in with results that contain letters within the range but I only want ... |
I am trying to search on a field declared as 'text' using the wildcard '*' but am getting mixed results. Basically, it seems to me that it's stripping off the ... |
I'm running a search with a type field. I'd like to show results of a certain type ONLY if two other field have values for them. So in my filter ... |
I'm setting up an environment using Nutch 1.0 + solR 1.4.
In Nutch I configured the subcollection plugin which seems to work nicely. If I search as normal adding fl=* I can ... |
I have imported docs into Solr that have fields dynamically created from a pattern (mostly *_s). In the back-end (/solr/admin), I can see that they exist: the aggregate stats, like term ... |
I'm actually working on a Symfony project at work and we are using Lucene for our search engine.
I was trying to use SQLite in-memory database for unit tests (we are using ... |
I have a Solr engine deployed with a Standard Request Handler
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<!-- default values for query parameters -->
<lst name="defaults">
<str name="echoParams">explicit</str>
<str ...
|
I have a really large (5000+ characters) text field in SOLR named Description. So far it works great for searching and highlighting. If I perform a search and there ... |
qorking on Solr, I get this error:
ERROR:unknown field 'name'
But I have defined this field in my schema.xml :
<field name="name" type="string" indexed="false" stored="true" required="true" elementForm="INPUTHIDDEN" />
I get this error when I ... |
I have a problem that i have a dynamic field in schema.xml
as <dynamicField name="sec_*" type="text" indexed="true" stored="false"/>
and <field name="Contents" type="text" indexed="true" stored="false" multiValued="true"/>
dynamic field is copied to Contents field as
<copyField ...
|
When searching, only stored fields are returned from a search. For debugging reasons, I need to see the unstored fields, too. Is there a way via the API?
Thanks!
P.S.: I know Luke, ... |
From schema.xml:
<field name="myfield" type="integer" indexed="true" stored="false"/>
The record with id 5 has myfield with value of 0, which I've confirmed by searching for plain id:5 and looking at the objectXml.
A search for ... |
Although being a total newbie, may be this question is pretty naive.
I want to search my index based on the index. So I tried created a document with just one ... |
my lucene index contains records like
id: 12345, code: AN1234, type:Document, author:Brijesh, Sachin
id: 093409, code: XYA1234, type:Paper, author:Brijesh
Now I need to query on "1234", so my base query would be based on ... |
I have a solr search problem, currently our schema is setup have the following
<field name="trading_name" type="trading_name" indexed="true" stored="false" required="true" multiValued="false" omitNorms="true" />
<field name="trading_name_notoken" type="string" indexed="true" stored="false" required="true" multiValued="false" omitNorms="true" />
...
<copyField source="trading_name" ...
|
Hi:
I have two documents:
title body
Lucene In Action ...
|
I am upgrading lucene 2.4.1 to 3.0.2 in my java web project
in lucene API's i found that Field.Store.COMPRESS is not present in 3.0.2 so
what i can use in place of Field.Store.COMPRESS?
some ... |
I have one field that is indexed as string in Solr's schema.xml, which is from a boolean(tinyint) column in mysql database.
In query, I search against this field using 1. But without ... |
I have stored a field in index file which is untokenized. When I try to get that field value from the index file I'm not able to do get it.
Note: I ... |
does anyone know how to create a custom field in solr 1.4? I need to create a field containing sub values of the same type, say 3 strings.
The problem is abt ... |
I'm trying to use MultiFieldQueryParser to execute the following search:
contents:hello world priority:high
i.e., I only want to see documents returned which contain the words 'hello' and 'world' and which have a priority ... |
Lets consider a product catalog with fields Category, Brand, BrandAndCategory And default search field.
If i search for "dell laptops" at first solr should search against Category field, if ... |
I can't search in other field than the default. With q=field:search doesn't return nothing (but documents exists obsviouly). Also didn't find it with defType=dismax.
In the schema.xml I have the field ... |
Title asks it all... I want to do a multi field - phrase search in Lucene.. How to do it ?
for example :
I have fields as String s[] ... |
I have a pretty straight-forward question.
I am using couchdb-lucene to search the full text of my documents.
My documents each have the following fields:
_id
_rev
docID (the unique ID of the document from our ... |
I had indexed data into Solr and add data into "name","features" field.
So, when I get data using java code I use "getFieldValue("name")" it returns the name into java variable.
When I use ... |
I've recently started experimenting with solr. My data is indexed and searchable. My problem is in the sorting. I have 3 fields: Author, Title, Sales. What I would like to do ... |
ColdFusion supports the Custom1 through Custom4 fields for Solr indexes. With Verity, you'd filter on these using cf_custom1 = 'blah', etc.
However, it appears that these cf_custom1/4 searches are not possible, and ... |
I'm trying to copy some dynamic fields for spellchecking. However, the . Below are the relevant fields from schema.xml:
<dynamicField name="*_text_fr" stored="false" type="text_fr" multiValued="true" indexed="true"/>
<dynamicField name="*_text_frs" stored="true" type="text_fr" multiValued="true" indexed="true"/>
<dynamicField name="*_text_frms" stored="true" ...
|
I'm having some trouble with a search I'm trying to implement. I need for a user to be able to enter a search query into a web interface and for ... |
I am trying to see if its possible to customize solr to change the way it searches for a specific field.
To better understand the context and the question, here is what ... |
"We want to deliver services via Solr / Lucene by dynamically allocating colums via data-config.xml using (script:F1) as example https://issues.apache.org/jira/browse/SOLR-2039:
Our service is provided by a common table expression (CTE) ... |
I would like to facilitate searching on a field that we cannot index or store in non hashed or encrypted form. Is there a way to tell solr to hash ... |
I'm having two fields "name" and "price".I want to get its value.Consider, name:Baseball and price:100.
Baseball is of type string and 100 is int. I'm using the following code to get the ... |
I've been trying to use ExternalFileField in ApacheSolr for external scoring.
I'm using the example config. Basically I want to set scores for items using their ids.
I set ... |
Using SOLR and the DataImportHandler, we have indexed our database. The database has a field that contains concatenated property data for the row. We use a transformer in our ... |
Is there a way of creating a field in Lucene which can accept a reader or InputStream and also store the content of it? I want to store the data so ... |
I use lucene for N-Gram matching. I set a field to be analyzed using an N-Gram analyzer. I want to see how the tokens resulting from the analysis look like to ... |
I have a field with indexed="no" and stored="yes" and now I need to query that field.
How can build this index after setting indexed="yes"? or I need to do a complete reindex ... |
while searching through solr indexes i am facing a very strange problem.
- when i search for 1210.00 i get the result and it gets hilighted in text field, which is a ...
|
I need some help doing a search.
Say I have a really simple document structure, just 1 field, labeled name.
I need to retrieve all the names whose length is more or less ... |
I am using solr to make search on my database, and am trying to add a new field (publisher_id of an article) in conf/shema.xml to get the value of the publisher_id ... |
I am looking to introduce Solr to power the search for a business listing website. The site has around 2 million records.
There is a search results page which will display some ... |
In lucene3 , How to retrieve data from colA = colB?
Data:
ID colA colB
1 a b
2 a a
3 ... |
I have some XML to ingest into Solr, which sounds like a use case that is intended to be solved by the DataImportHandler. What I want to do is pull ... |
Given the following csv file:
id,name,manu,cat,features,price,popularity,inStock,manufacturedate_dt,store
SPF15,Hawaii Sunblock,P&G,lotion|medicine|ointment,15SPF|waterproof|kidsfriendly,8.99,8,true,2011-02-13T15:26:37Z,"35.0752,-97.032"
When I run this command
curl 'http://localhost:8080/solr/update/csv?commit=true&f.features.split=true&f.features.separator=%7Cf.cat.split=true&f.cat.separator=%7C' --data-binary @input.csv -H 'Content-type:text/plain; charset=utf-8'
Only features is split but not cat
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">2</int>
...
|
I found lots of questions about how to force Solr to truncate field's contents (like this one), but I got an opposite problem. When searching (from both - Solr admin ... |
SOLR results are normally ordered by "best match" of your search criteria. Is it possible to order the results alphabetically by a given SOLR field?
I realize that this is not ... |
I am trying to search on 2 fields without having to specify a field name in the query. In my schema.xml I have added 2 fields that correspond to 2 columns ... |
I wonder if it is possible to configure mlt (more like this) to do the similarity on close numbers ?
For example, a document with the field numberOfParticipant at 10, i would ... |
I have a database with Vendor's information: name and address (address, city, zip and country fields). I need to search this database and return some vendors. On the search box, the ... |
I have a (Lucene) search control which retrieves items from Sitecore's master database if the item's name matches a term passed in.
However I also want the search to include the item's ... |
I'm working with Solr's schema.xml, and I know that I can use the 'default' attribute to specify a default value which is to be used if a value for a given ... |
I have a Solr schema which contains a location field (using the default solr.LatLonType ):
<field name="latlng" type="location" indexed="true" stored="true"/>
And I am trying to populate it using a DataImportHandler. Currently I ... |
Related to question
How to select distinct field values using Solr?
but what I want is the counter.
I want to know how many distinct elements there is in a Solr field. I ... |
I use solr 3.4. When I search a word, I have an InvalidTokenOffsetsException.
My field type look like :
<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
...
|
Lucene document has field a with content hello and a with content world. If i'll search "hello world"~2 it will be founded =(. How can I fix it?
FastVectorHighlighter will highlight it ... |
I have setuped suggester component for autocomplete for one field(it work fine), but I need it for multiple fields is this possible?
My solrconfig xml:
<searchComponent class="solr.SpellCheckComponent" name="suggest">
<lst name="spellchecker">
...
|
I've got a question about the possibility creating nested fields in solr.
Google searches told me something about group but I think its just for the result?
what I want to have is ... |
I have a corpus of documents that look like this:
<doc>
text sample text <x>text</x> words lipsum words words <x>text</x> some other text
</doc>
I would like to be able to search for phrases (in ... |
I'm using a PHP library called solr-php-client (http://code.google.com/p/solr-php-client/) to interface with my Solr server. I can extract data from the document, store it, and search on it, but I can't seem ... |
I'm indexing rich text documents into SOLR 3.4 using ExtractingRequestHandler and I'm having trouble getting it to behave like I want it to.
I would like to store creation date as a ... |
Lets use emails for an example as a document. You have your subject, body, the person who its from and lets say we can also tag them (as gmail does)
From my ... |
I have field string field 'tags' and I want to list all indexed values for 'tag' from Solr.
Is there some introspection API in order to get hold of all values as ... |
How can I control the search behaviour, for example, all "fields", only in fields of "features, description"? Thank you.
|
I have a number of Solr documents with dynamic fields which duplicate data that is in fields in other documents. The trouble is, the data in these dynamic fields gets stale ... |
I have incoming queries and I want to only search in certains fields (author, book title) not in field (book content). How can I achieve this in Lucene?
another questions is ... |
I already have some documents indexed using more NumericFields per document.
Now I want to search the documents that have all fields from <-3,+3> interval e.g.:
query: n1=7,n2=10,n3=12 - and the search ... |
For example, I've keyword for search is: 'Basket Ball'. What is the query that can get all field that contain the 'Basket Ball',.?
I've tried to using *:Basket Ball, but it doesn't ... |
Elastic Search does not currently (as of 0.18.4) support field collapsing. Is there a good way to simulate this, as to avoid N search queries?
|