Field « Field « Java Lucene Q&A

Home
Java Lucene Q&A
1.Database
2.Development
3.document
4.Field
5.index
6.lucene
7.lucene.net
8.nutch
9.query
10.solr
11.Tools
Java Lucene Q&A » Field » Field 

1. Troubleshoot Java Lucene ignoring Field    stackoverflow.com

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 ...

2. Applying one or more field level filtering on search results    stackoverflow.com

How do i apply one or more field level filters on existing search results returned by lucene? Thanks! Ed

3. nutch field problem    stackoverflow.com

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 ...

4. Solr: Populate Separate Fields from a Tokenizer    stackoverflow.com

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 ...

5. Lucene: unstored fields    stackoverflow.com


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 ...

6. What is the use of Field.Set OmitNorms(true); in lucene    stackoverflow.com

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 ...

7. Lucene (Java) - How to specify default search field programatically?    stackoverflow.com

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 ...

8. how to create a custom field in nuch search engine?    stackoverflow.com

hi i want to create a custom field in nutch search engine? what are the steps i will follow?

9. SORLJ undefined field null    stackoverflow.com

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 ...

10. Lucene search where a field MUST start with certain letters    stackoverflow.com

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 ...

11. Solr 'text' fields not accepting wild-cards    stackoverflow.com

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 ...

12. I'm trying to do a solr search such that results are shown if a certain field has ANY value    stackoverflow.com

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 ...

13. Can't search in a certain field using solR    stackoverflow.com

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 ...

14. Solr not searching (dynamically created) fields    stackoverflow.com

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 ...

15. Order by field with SQLite    stackoverflow.com

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 ...

16. Solr - omit certain fields from being highlighted    stackoverflow.com

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 ...

17. How do I return only a truncated portion of a field in SOLR?    stackoverflow.com

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 ...

18. ERROR:unknown field '..'    stackoverflow.com

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 ...

19. Problem with Solr dynamic/copy Field    stackoverflow.com

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 ...

20. How can I retrieve non-stored Lucene field values?    stackoverflow.com

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, ...

21. Why can I not search for a "0" field in Solr?    stackoverflow.com

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 ...

22. Search by field in Lucene    stackoverflow.com

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 ...

23. Lucence: filter on multiple fields    stackoverflow.com

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 ...

24. solr search, avoid defaultSearchField    stackoverflow.com

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" ...

25. field cross search in lucene    stackoverflow.com

Hi: I have two documents:

title                       body
Lucene In Action   ...

26. Field.Store.COMPRESS in Lucene 3.0.2    stackoverflow.com

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 ...

27. The field value is 1 or true in solr search results    stackoverflow.com

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 ...

28. Untokenized field in Lucene search    stackoverflow.com

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 ...

29. Custom fields with sub-fields in Solr 1.4    stackoverflow.com

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 ...

30. Using Lucene MultiFieldQueryParser for multiple required fields    stackoverflow.com

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 ...

31. Search Against Series Of Fields - Solr    stackoverflow.com

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 ...

32. Solr only search in default field    stackoverflow.com

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 ...

33. How to do a Multi field - Phrase search in Lucene?    stackoverflow.com

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[] ...

34. Limit couchdb-lucene results by key / specific field? map?    stackoverflow.com

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 ...

35. Field Types in Solr    stackoverflow.com

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 ...

36. influencing solr search results with a field value    stackoverflow.com

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 ...

37. How do you search for custom fields in Solr in ColdFusion?    stackoverflow.com

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 ...

38. Solr Copyfield on dynamic fields regexp issue    stackoverflow.com

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" ...

39. Searching multiple fields with Lucene    stackoverflow.com

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 ...

40. Customizing how Solr searches a specific field    stackoverflow.com

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 ...

41. dynamic field allocation in solr data-config.xml    stackoverflow.com

"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) ...

42. Hashing a solr input field    stackoverflow.com

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 ...

43. How to get value of a field?    stackoverflow.com

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 ...

44. External File Field in Apache Solr    stackoverflow.com

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 ...

45. SOLR Undefined Field Length    stackoverflow.com

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 ...

46. Anyways of making a Lucene field stored as well as streamed through a reader    stackoverflow.com

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 ...

47. Fieldable.tokenStreamValue() returns null for tokenized field    stackoverflow.com

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 ...

48. Reindex after change in one field    stackoverflow.com

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 ...

49. problem to highlight a field's value    stackoverflow.com

while searching through solr indexes i am facing a very strange problem.

  1. when i search for 1210.00 i get the result and it gets hilighted in text field, which is a ...

50. Lucene: searching/filtering by field's value length    stackoverflow.com

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 ...

51. Add field in solr shema.xml    stackoverflow.com

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 ...

52. Should I keep the size of stored fields in Solr to a minimum?    stackoverflow.com

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 ...

53. In Lucene3, How to retrieve data from multiple fields are equal?    stackoverflow.com

In lucene3 , How to retrieve data from colA = colB?
Data:
ID  colA  colB
1    a    b
2    a    a
3 ...

54. Solr DataImportHandler: Can I get a dynamic field name from xml attribute with XPathEntityProcessor?    stackoverflow.com

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 ...

55. How can I split more than one (1) field using Solr's csv import    stackoverflow.com

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>
 ...

56. How can I force Solr to return complete field's contents?    stackoverflow.com

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 ...

57. SOLR: ordering results alphabetically by field    stackoverflow.com

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 ...

58. Searching multiple fields in SOLR    stackoverflow.com

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 ...

59. SolR : More Like This on number fields    stackoverflow.com

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 ...

60. Solr/Lucene spellcheck suggestions based on multiple fields    stackoverflow.com

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 ...

61. Including an Item's Fields in Sitecore Search    stackoverflow.com

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 ...

62. Solr: what are the default values for fields which does not have a default value explicitly set?    stackoverflow.com

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 ...

63. What SQL datatype should be used to populate a Solr location (spatial) field when using a DataImportHandler?    stackoverflow.com

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 ...

64. Solr: number of distinct elements in a field    stackoverflow.com

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 ...

65. Solr highlight : InvalidTokenOffsetsException    stackoverflow.com

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">
    ...

66. Lucene searches on 2 field values as single    stackoverflow.com

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 ...

67. SOLR suggester multiple field autocomplete    stackoverflow.com

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">
 ...

68. nested fields in SOLR    stackoverflow.com

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 ...

69. Using XML fields for promixity search in Lucene    stackoverflow.com

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 ...

70. How can I add data to dynamic fields when using solr's extract functionality?    stackoverflow.com

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 ...

71. Mapping fields in SOLR for faceting    stackoverflow.com

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 ...

72. How do i include other fields in a lucene search?    stackoverflow.com

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 ...

73. Introspecting stored values of a field    stackoverflow.com

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 ...

74. How can I control the search only to certain fields in Lucene    stackoverflow.com

How can I control the search behaviour, for example, all "fields", only in fields of "features, description"? Thank you.

75. How to do "field pointers" in Apache Solr    stackoverflow.com

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 ...

76. how to set up the searchable fields in Lucene    stackoverflow.com

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 ...

77. Searching multiple numerical fields Lucene    stackoverflow.com

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 ...

78. How can I search all field in SOLR that contain the keywords,.?    stackoverflow.com

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 ...

79. Simulating field collapsing/grouping by field in Elastic Search    stackoverflow.com

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?

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.