|
@@ -42,14 +42,35 @@ const patentinfo = {
|
|
const schema = new Schema(patentinfo, { toJSON: { virtuals: true } });
|
|
const schema = new Schema(patentinfo, { toJSON: { virtuals: true } });
|
|
schema.index({ id: 1 });
|
|
schema.index({ id: 1 });
|
|
schema.index({ create_number: 1 });
|
|
schema.index({ create_number: 1 });
|
|
|
|
+schema.index({ create_date: 1 });
|
|
|
|
+schema.index({ success_number: 1 });
|
|
|
|
+schema.index({ success_date: 1 });
|
|
schema.index({ name: 1 });
|
|
schema.index({ name: 1 });
|
|
schema.index({ inventor: 1 });
|
|
schema.index({ inventor: 1 });
|
|
|
|
+schema.index({ address: 1 });
|
|
schema.index({ apply_personal: 1 });
|
|
schema.index({ apply_personal: 1 });
|
|
schema.index({ term: 1 });
|
|
schema.index({ term: 1 });
|
|
schema.index({ type: 1 });
|
|
schema.index({ type: 1 });
|
|
|
|
+schema.index({ agent_personal: 1 });
|
|
|
|
+schema.index({ agent: 1 });
|
|
|
|
+schema.index({ abstract: 1 });
|
|
|
|
+schema.index({ origin: 1 });
|
|
schema.index({ status: 1 });
|
|
schema.index({ status: 1 });
|
|
schema.index({ trans_status: 1 });
|
|
schema.index({ trans_status: 1 });
|
|
|
|
+schema.index({ nationality: 1 });
|
|
|
|
+schema.index({ ipc_type: 1 });
|
|
|
|
+schema.index({ onlegal_status: 1 });
|
|
|
|
+schema.index({ legal_status: 1 });
|
|
|
|
+schema.index({ law_date: 1 });
|
|
|
|
+schema.index({ on_obligee: 1 });
|
|
|
|
+schema.index({ apply_address: 1 });
|
|
|
|
+schema.index({ apply_other: 1 });
|
|
|
|
+schema.index({ law_num: 1 });
|
|
|
|
+schema.index({ first_opendate: 1 });
|
|
|
|
+schema.index({ empower_date: 1 });
|
|
schema.index({ lose_date: 1 });
|
|
schema.index({ lose_date: 1 });
|
|
|
|
+schema.index({ examine_date: 1 });
|
|
|
|
+schema.index({ invention_design: 1 });
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
schema.index({ 'meta.createdAt': 1 });
|
|
schema.plugin(metaPlugin);
|
|
schema.plugin(metaPlugin);
|
|
module.exports = app => {
|
|
module.exports = app => {
|